Hi,
Probably a dumb question but I'll ask anyway as I can't get it to work... how can I add or remove an item from the watchlist using the raw data method. I've tried all sorts of combinations, read and re-read the documentation and Googled for answers but not had any luck yet.
https://api.themoviedb.org/3/account/{id}/watchlist?api_key=XXXX&session_id=XXXX{"media_type": "movie","media_id": 127585,"watchlist": false}
Any help or a working example would be gratefully appreciated.
Thanks
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط Ben Howard
در تاریخ ژوئن 5, 2014 ساعت 5:18 ب.ض
No one gonna throw me a bone :(
پاسخ توسط Travis Bell
در تاریخ ژوئن 5, 2014 ساعت 6:31 ب.ض
Hey Ben,
You need to POST the data in as JSON. In cURL, an working example looks like:
پاسخ توسط Ben Howard
در تاریخ ژوئن 6, 2014 ساعت 8:46 ق.ض
Hi Travis,
Thanks for the reply... I still don't get it but I'll go read up and see if I can learn more.
Thanks
پاسخ توسط Travis Bell
در تاریخ ژوئن 6, 2014 ساعت 5:06 ب.ض
What language are you coding in?
پاسخ توسط Ben Howard
در تاریخ ژوئن 6, 2014 ساعت 5:14 ب.ض
VB.NET, I tried the example but it doesn't work for me. Not had time this week to find out why.
پاسخ توسط Ben Howard
در تاریخ ژوئن 6, 2014 ساعت 6:48 ب.ض
The error I get is: The 'Accept' header must be modified using the appropriate property or method.
And the code I'm using looks like:
پاسخ توسط Ben Howard
در تاریخ ژوئن 7, 2014 ساعت 5:45 ق.ض
I got it sorted in the end... just for future reference or anyone else who needs a nudge in the right direction I've added my code below.
Thanks
Ben