Soporte de The Movie Database

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 respuestas (en la página 1 de 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 !

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión