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
Non riesci a trovare un film o una serie Tv? Accedi per crearlo.
Vuoi valutare o aggiungere quest'elemento a una lista?
Non sei un membro?
Risposta da Ben Howard
il 5 giugno, 2014 alle 5:18PM
No one gonna throw me a bone :(
Risposta da Travis Bell
il 5 giugno, 2014 alle 6:31PM
Hey Ben,
You need to POST the data in as JSON. In cURL, an working example looks like:
Risposta da Ben Howard
il 6 giugno, 2014 alle 8:46AM
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
Risposta da Travis Bell
il 6 giugno, 2014 alle 5:06PM
What language are you coding in?
Risposta da Ben Howard
il 6 giugno, 2014 alle 5:14PM
VB.NET, I tried the example but it doesn't work for me. Not had time this week to find out why.
Risposta da Ben Howard
il 6 giugno, 2014 alle 6:48PM
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:
Risposta da Ben Howard
il 7 giugno, 2014 alle 5:45AM
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