Hello,
I have completed the 2 steps of Create a token and Ask the user for permission. When I try to make my request with create session (with login), I receive this error message:
status_code: 32
status_message"Email not verified: Your email address has not been verified."
success: false
API_KEY and REQUEST_TOKEN are transmitted correctly.
I don't understand what's not working. How do I get the email verified? Thanks for help :)
This is what my request looks like :
try {
const response = await axios.post(
`https://api.themoviedb.org/3/authentication/token/validate_with_login?api_key=${API_KEY}&request_token=${REQUEST_TOKEN}`,
{
username: username,
email: email,
password: password,
},
{
headers: {
Authorization: `Bearer ${token}`,
},
}
);
setIsLoading(false);
} catch (error) {
console.error(error.message);
}
};
Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.
Deseja classificar ou adicionar este item a uma lista?
Ainda não é um membro?
Resposta de robbie3999
em 11 novembro 2023 às 8:20 PM
Hi @chocmax, according to the documentation, the json body should be
So, I'm not sure why you get that particular error message but it might have something to do with the "email" parameter that shouldn't be there. The "request_token" passed in the URL is probably getting ignored. And you don't need the Authorization header because you are passing the api_key in the URL.
Resposta de chocmax
em 12 novembro 2023 às 6:43 AM
thanks for your answer, i try with body :
i have the same error, email not verified :/ .
Resposta de robbie3999
em 12 novembro 2023 às 1:01 PM
I don't know what is going wrong, perhaps someone writing similar code will be able to help out.