Hello! I'm building a React app. When I make a request "Mark as Favorite" and post:
{
favorite: true,
media_id: {id},
media_type: "movie"
}
I always receive the same response:
{"status_code":12,"status_message":"The item/record was updated successfully."}
and I don't see a result on my page. I also make a request "Add to Watchlist" with the same parametres and it works perfectly. What should I do? Please, help me.
找不到电影或剧集?登录并创建它吧。
Travis Bell 的回复
于 2020 年 05 月 11 日 12:31下午
I'm not having any trouble using this example cURL command (as an example for Black Panther):
A few things:
keira.kirillova 的回复
于 2020 年 05 月 11 日 1:49下午
When I make a request "Add to Watchlist", I receive a response {"status_code":1,"status_message":"Success."}, it's ok.
But when "Mark as Favorite" I also try to send "favorite": true and "favorite": false, the result - {"status_code":12,"status_message":"The item/record was updated successfully."}
keira.kirillova 的回复
于 2020 年 05 月 18 日 2:13下午
Hi, I've found my problem of "Add to Watchlist" and "Mark as Favorite": if the array of results < = 20 it works correctly. But if we have more then 20 items (fo example, 21) we can see that "total_pages": 2, "total_results": 21, but "results": 20, and we can use only 20 items (that marked as favorite or added to watchlist). How can I use the results from page 2?