Suporte do 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 respostas (na 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.

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade