In /authentication/session/new, the "Try It Out" example states that the Query String is required to have request_token. What is the request_token? How do I get or calculate it?
Не можеш да нађеш филм или серију? Пријави се да додаш.
Желите ли да оцените или додате ову ставку у листу?
Нисте члан?
Одговор од ticao2 🇧🇷 pt-BR
дана 08. фебруар 2018. у 3:38 PM
If you already have an API Key, then you already have a request token: API Read Token (v4 auth).
Right here, on this page, on the left side
Click Your account,
https://i.imgur.com/dtNfScH.jpg
and Go To
Your Profile > Settings > API
https://i.imgur.com/LOhSqn9.jpg
Одговор од mkowales
дана 08. фебруар 2018. у 4:28 PM
Now I get the following message using the "Try It Out" example:
{ "status_code": 17, "status_message": "Session denied." }
What do I have to do to return a valid session?
Одговор од ticao2 🇧🇷 pt-BR
дана 08. фебруар 2018. у 4:56 PM
My language is pt-BR.
Please, put here the link to this example "Try It Out".
Одговор од mkowales
дана 08. фебруар 2018. у 5:10 PM
The URL for Try It Out:
Одговор од ticao2 🇧🇷 pt-BR
дана 08. фебруар 2018. у 5:19 PM
OK.
http://www.https.com//api.themoviedb.org/3/authentication/session/new?api_key=YOUR_KEY&request_token=YOUR_TOKEN
Only Travis Bell can help you.
Where did you find this using the "Try It Out" example.
Одговор од mkowales
дана 08. фебруар 2018. у 6:29 PM
the "Try It Out" example
Одговор од Travis Bell
дана 09. фебруар 2018. у 11:32 AM
You need to create a valid session id. This is outlined here: https://developers.themoviedb.org/3/authentication/how-do-i-generate-a-session-id
There's a good walkthrough for user auth here: https://developers.themoviedb.org/3/getting-started/authentication
Одговор од mkowales
дана 09. фебруар 2018. у 3:42 PM
How would I get the session id after it was already accepted? Also, how would I accept or deny the session request programmatically?
Одговор од Travis Bell
дана 12. фебруар 2018. у 11:16 AM
The session id is returned as part of the response in step #3.
You can't. You need to send the user to a webview and approve the request with their account on TMDb.