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 的回复
于 2023 年 09 月 06 日 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.