The Movie Database-støtte

Greetings, I am trying to login into my app and then I am redirected to **https://www.themoviedb.org/auth/access?request_token={request_token}** but after approving the token I am not able to redirect back.

import axios from "axios";
let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://www.themoviedb.org/auth/access?request_token={request}&redirect_to = https:{URL}'
  headers: { }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Please let me know what am I doing wrong...

1 svar (på side 1 av 1)

Jump to last post

Hi @saif.azamkhan77@gmail.com, I don't think you are using redirect_to properly.

In V3 authentication, the format is as shown in step 2 here.

In V4 authentication, the redirect is passed in the body of the request as shown here.

In any event, it looks like you have spaces around the "=" in redirect_to = url, which won't work either.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p åpne profilmenyen
esc lukk et åpent vindu
? open keyboard shortcut window

On media pages

b gå tilbake (eller til foreldresiden når mulig)
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

Innstillinger

Vil du vurdere eller legge til dette elementet i en liste?

Logg inn