I am creating a new android application, as soon as the user opens the app, the app will request a new guest session api. Then, the app will use this new api, to request the 'discover' movies. The response that I get from the servers is:
"status_message": "Invalid API key: You must be granted a valid key.",
"success": false,
"status_code": 7
Why am I getting this error? This error is solved when I use my original api to make the request....
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on March 4, 2017 at 12:24 PM
Discover is only authenticated with your API key.
Guest sessions are for account related functionality. Even if/when you use a guest session feature, you'll still need to use your API key.
Reply by Priyansh
on March 5, 2017 at 4:54 AM
So what is the use of the guest session API??
Reply by Travis Bell
on March 5, 2017 at 10:19 AM
To have some account functionality without signing up for an account.
You can read more about this here: https://developers.themoviedb.org/3/getting-started/authentication