Soporte de The Movie Database

Hi! So I followed the steps here https://www.themoviedb.org/documentation/api/sessions I did 1 and 2a and then I tried 1 and 2b and both times i got a session denied.

  1. http://api.themoviedb.org/3/authentication/session/new?api_key=###&request_token=###
  2. https://api.themoviedb.org/3/authentication/token/validate_with_login? api_key=###&request_token=###&username=###&password=###

Response:

{
"status_code": 17
"status_message": "Session denied."
}

Please help! what am i doing wrong?

2 respuestas (en la página 1 de 1)

Jump to last post

Hi edodd,

Are you making sure to use the request token before it expires? I'm not sure what to tell you, my first try just now worked.

  1. Create a new request token from /3/authentication/token/new
  2. Use that token on either the website (2a) or API (2b).

One thing maybe you're missing, when you call /authentication/session/new (step 3) this is the step that generates your proper session id. You don't use your request token as your session ID. Upon success, you will receive a response like this from step 3:

{
  "success": true,
  "session_id": "07302d27f04467f5b8fb998clk52gf9017"
}

Now you're good to go with the properly generated session id (which is different than your request token, the request token is throw away).

I think I figured out what i did wrong. I was putting request_token=#### when I should have been putting just the ### (REQUEST_TOKEN)

Now I just have a problem with the session_id not allowing me permission to post.

¿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