Add To Watchlist api not working
I didn't understand the body parameters what is should be???
const options = {
method: 'POST',
headers: {
accept: 'application/json',
'content-type': 'application/json',
Authorization: 'Bearer XXXX'
},
body: JSON.stringify('{account_id:20394161}')
};
fetch('https://api.themoviedb.org/3/account/20394161/watchlist', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de robbie3999
pe data de 6 septembrie 2023 la ora 12:42 PM
Hi @Thaer_sarakbi, for Add To Watchlist, go to the "Try It!" box on the right, then select "Examples->Request Example" to see what an example body input would look like.