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.
Nemůžete nalézt film nebo seriál? Přihlaste se pro jeho vytvoření.
Want to rate or add this item to a list?
Not a member?
Odpověď od Travis Bell
11.05.2020 v 12:31 ODP.
I'm not having any trouble using this example cURL command (as an example for Black Panther):
A few things:
Odpověď od keira.kirillova
11.05.2020 v 1:49 ODP.
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."}
Odpověď od keira.kirillova
18.05.2020 v 2:13 ODP.
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?