The Movie Database 支持

Eclipse Error: 05-09 00:56:20.397: D/URL(2878): http://api.themoviedb.org/3/tv/6175?api_key=### 05-09 00:56:20.641: D/JSON(2878): {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}

In Chrome: {"backdrop_path":null,"created_by":[{"id":130319,"name":"Harvey Bullock","profile_path":null}],"episode_run_time":[30],"first_air_date":null,"genres":[{"id":35,"name":"Comedy"}],"homepage":"","id":6175,"in_production":true,"languages":["en"],"last_air_date":null,"name":"McKeever and the Colonel","networks":[{"id":6,"name":"NBC"}],"number_of_episodes":0,"number_of_seasons":0,"origin_country":["US"],"original_language":"en","original_name":"McKeever and the Colonel","overview":"McKeever and the Colonel is an American situation comedy that was broadcast on NBC television in the United States from 1962-1963. Its setting was a Westfield military academy. Dick Powell's Four Star Television produced the series.\n\nGary McKeever was the name of a student who was the lead of the series, whilst the Colonel in the title referred to the school commandant who was constantly at loggerheads with McKeever.\n\nJackie Coogan played Sgt. Barnes, a soldier at the school who was sympathetic to McKeever. The program also starred character actor John McGiver.\n\nThe guest stars included Walter Coy, formerly the host of the NBC anthology series Frontier.","popularity":2.02938267931654e-83,"poster_path":null,"production_companies":[],"seasons":[],"status":"Ended","type":"Scripted","vote_average":0.0,"vote_count":0}

4 回复(第 1 页,共 1 页)

Jump to last post

Hi nando86,

Using the API key for your account (I've truncated it here for privacy reasons) everything looks ok to me:

https://api.themoviedb.org/3/tv/6175?api_key=070cf*******

Make sure there aren't any trailing or prepended spaces.

Cheers.

I've tried a thousand different ways, from the app I can not display the json. Any solution that you can use to show?

Is the problem only in your app? The request works fine in your browser, which you can test and see.

You could try using Apiary to inspect the request you're sending and see how it differs between your browser and your code. They have a request inspection tool that makes this pretty easy.

I use first - https://api.themoviedb.org/3/tv/top_rated?api_key=070cf############&page=1 and Insert in the listview, when click in the tv show, search the description of tvshow and chapters.. when i send petition only show me this error in Android Device Monitor...

05-29 15:53:51.034: D/URL(2775): https://api.themoviedb.org/3/tv/39218?api_key=070cf################## 05-29 15:53:51.072: W/EGL_emulation(2775): eglSurfaceAttrib not implemented 05-29 15:53:51.072: W/OpenGLRenderer(2775): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5846d60, error=EGL_SUCCESS 05-29 15:53:51.525: W/DefaultRequestDirector(2775): Authentication error: Unable to respond to any of these challenges: {} 05-29 15:53:51.526: D/JSON(2775): {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区