The Movie Database Support

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 replies (on page 1 of 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.

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?

Login