The Movie Database Support

for example, when i aceess /movie/popular and click the GET button ,the right side url is like this: http://api.themoviedb.org/3/movie/popular , then i input the api key like this:

api_key : xxxxxxxx

finally,i click the "CallResource" button ,the spinner option is "production", the result is "Invalid API key", but i am sure my key is ok. when i switch the spinner option to "Mock Server", the result is ok. i don't know why?

after,i use the volley lib to access this URL in the android demo and set the header like this:

headers.put("content-type","application/json");

headers.put("api_key", Constans.API_KEY);

then also the response is "401" .

plz help me !

forgive me , my english was so bad :)

Thanks :)

3 replies (on page 1 of 1)

Jump to last post

what can i input in the Headers ? (apiary.io right side console)

Hi a_bin,

Apiary by default, expects the api key to be input as a header which we do not support. You will need to pass it in as a query parameter, i.e.:

https://api.themoviedb.org/3/movie/550?api_key=###

Cheers.

ok, thank u !

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

hyrje