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));
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by robbie3999
on September 6, 2023 at 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.