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.