The Movie Database-ondersteuning

Additional Note: underscore is not appearing in this post when I copy paste from Visual Studio

Hi,

Not tried this method before , reviewed the documentation but getting 401 Unauthorized

I hard code the api key, username and password for testing, and I can login to the website with the same credentials.

Am I doing something wrong here?

Im getting a request token as expected

var client = new WebClient();

string response = client.DownloadString("http://api.themoviedb.org/3/authentication/token/new?api_key=###");

TMDB_Authentication authentication =  JsonConvert.DeserializeObject<TMDB_Authentication>(response);

Attempting to login here

string response2 = client.DownloadString("https://api.themoviedb.org/3/authentication/token/validate_with_login?" + "apikey=###&request_token="  + authentication.request_token +  "&username=deery5000&password=password");

TMDB_Authentication authentication2 = JsonConvert.DeserializeObject<TMDB_Authentication>(response2);

2 antwoorde (op blad 1 van 1)

Jump to last post

Hi Kevin,

I'm not sure, I just followed the steps and successfully generated a new session ID with the validate_with_login method.

What's the actual body being returned?

I'm getting {"status_code":30,"status_message":"Invalid username and/or password: You did not provide a valid login."}

with this url:

https://api.themoviedb.org/3/authentication/token/validate_with_login?api_key=###&request_token=###&username=mataharimau&password=####

The username and password log me into the web site, but this url doesn't work? neither in the app, nor when I paste it into a browser.

If I use the request_token in https://www.themoviedb.org/authenticate/{REQUEST_TOKEN}, I get the approval page.

Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.

Globaal

s fokus op soekbalk
p open profielkieslys
esc sluit ’n oop venster
? open sneltoetsvenster

Op mediablaaie

b gaan terug (na ouer waar van toepassing)
e gaan na wysigblad

Op TV-seisoenblaaie

(regterpyl) gaan na volgende seisoen
(linkerpyl) gaan na vorige seisoen

Op TV-episodeblaaie

(regterpyl) gaan na volgende episode
(linkerpyl) gaan na vorige episode

Op alle beeldblaaie

a open beeldtoevoegvenster

Op alle wysigingsblaaie

t open vertaalkieser
ctrl+ s dien form in

Op besprekingsblaaie

n skep nuwe bespreking
w tokkel kykstatus
p tokkel openbaar/privaat
c tokkel maak oop/toe
a open aktiwiteit
r reageer op bespreking
l gaan na laaste reaksie
ctrl+ enter dien u boodskap in
(regterpyl) volgende blad
(linkerpyl) vorige blad

Instellings

Wil u hierdie item gradeer of tot ’n lys toevoeg?

Teken aan