Hello,
I have a problem , so i try to remove selected movie from watch list using following call "POST /account/{account_id}/watchlist". In last parameter in request body i pass "false", as i understood that's mean that i remove item from list , but actually item doesn't remove.
Below you can see the response: { "status_code": 12, "status_message": "The item/record was updated successfully." }
In params i pass : "session_id" and "api_key" In header Content-Type : "application/json" In request body : "media_id" as String value, "media_type" also as String value and "favorite" as Boolean value.
My end point: https://api.themoviedb.org/3/account/11/favorite?session_id=XXXXXXXXXXXXXXXX&api_key=XXXXXXXXXXXXXXX
Thank you in advance for help, Kind regards, Brad.
找不到电影或节目?登录并创建它吧。
Travis Bell 的回复
于 2018 年 11 月 25 日 1:22下午
Hi Brad,
I just gave this a spin and had no problems adding and removing items from my favourite list. Here's an example request to remove the item from my favourite list:
POST Body:
Are you making sure your values for
media_id
andfavorite
are a integer and boolean?Brad Pitt 的回复
于 2018 年 11 月 26 日 2:29上午
HI Travis,
That how look my endpoint :
https://api.themoviedb.org/3/account/11/favorite?session_id=######&api_key=#######
And i have the same body as you wrote above but actually i receive The same message as in previous time.
I can mark movie as favorite, but i can remove it from favorite, but the main difference between two calls is last value of the body, we have to change just boolean value from TRUE to FALSE.
But it's not working ... May bу there are anything else can be wrong? Kind regards, Brad.
Travis Bell 的回复
于 2018 年 11 月 27 日 8:49下午
Are you able to run these cURL commands? Here's the 4 that I just ran that are working properly:
Add to my favourite list:
Check my favourite list, notice
284054
is first in my list. Also note that I added asort_by=created_at.desc
param to make sure I am getting items sorted that are newest added first.Then I remove the item:
And finally call my list one last time to see that the item is removed:
Aizaz Alam Khan 的回复
于 2023 年 10 月 21 日 1:13上午
I have the same issue, I just change the favorite to false for removing the specific movie from my favorite movies list but it is not working... can you help me out in it?