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));
Не вдалося знайти фільм або серіал? Увійдіть, щоб додати.
Хочете оцінити чи додати до списку?
Немає облікового запису?
Відповідь від robbie3999
6 вересня 2023, 12:42
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.