If I'm not mistaken, the following POST request did work earlier, but doesn't anymore?
https://api.themoviedb.org/3/account/[###]/favorite?api_key=[###] with the data:
{
favorite: true,
media_id: 123,
media_type: 'movie',
},
I get the response {"success":false,"status_code":34,"status_message":"The resource you requested could not be found."}
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från simonferndriger
den 29 juli 2024 vid 12:53 PM
By the way, on the https://www.themoviedb.org/u/simonferndriger/favorites page the favorite toggle button doesn't work either. It only works on the detail page.
Svar från simonferndriger
den 30 juli 2024 vid 12:29 AM
Is this a known issue and somebody already working on it or are you as surprised as I am?
Svar från simonferndriger
den 31 juli 2024 vid 12:55 PM
Anyone?
Svar från Travis Bell
den 1 augusti 2024 vid 11:21 AM
What's the
media_id
you are passing in?I am not seeing any issues:
Add to favourites
Response
Remove from favourites
Response
Svar från simonferndriger
den 2 augusti 2024 vid 11:24 PM
I'm sorry, you're right! Now it works like it should. Don't know what the issue was before unfortunately, but I can imagine there was something wrong with the account id at first...
PS: But I can say that the media_id doesn't seem to matter when trying it on the tmdb website itself. See screen recording here: https://go.screenpal.com/watch/cZjeeqVPSoL - There I tried it for example for
205596
, and it only worked on the detail page https://www.themoviedb.org/movie/205596-the-imitation-game but NOT on my favorites page https://www.themoviedb.org/u/simonferndriger/favorites