The Movie Database-ondersteuning

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.

3 antwoorden (op pagina 1 van 1)

Jump to last post

I'm not having any trouble using this example cURL command (as an example for Black Panther):

curl --location --request POST 'https://api.themoviedb.org/3/account/{ID}/favorite?api_key=###&session_id=###' \
--header 'Content-Type: application/json' \
--data-raw '{
    "media_type": "movie",
    "media_id": 284054,
    "favorite": true
}'

A few things:

  1. There can at times be a delay in the item being posted.
  2. How are you checking the updated status?
  1. In Chrome devtools, tab Network ("Response")
    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."}

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?

Film of tv-serie niet gevonden? Log dan in om deze te creëren.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op TV seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met TV-programma's

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c gesloten of open
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen