Supporto The Movie Database

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 risposte (nella pagina 1 di 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.

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi