The Movie Database Support Forum

Hello,

1) why do we have to pass account ID to Account API ? My tests seem to prove that this parameter is ignore by the API : I can pass any ID and I always get data related to session

2) I can't remove items from favorite nor whatchlist. I only can add. Seems the parameter favorite|watchlist = false is broken the api returns no error {"status_code"=>12, "status_message"=>"The item/record was updated successfully."}

2 Antworten (Seite 1 von 1)

Jump to last post

Hi,

1) why do we have to pass account ID to Account API ? My tests seem to prove that this parameter is ignore by the API : I can pass any ID and I always get data related to session

Indeed this is the case today but it might not always be.

2) I can't remove items from favorite nor whatchlist. I only can add. Seems the parameter favorite|watchlist = false is broken the api returns no error

Using these 2 commands I'm not having any trouble adding and removing items from my watchlist:

curl -H "Accept: application/json" -H "Content-Type: application/json" -d \
"{'media_type': 'movie', 'media_id': 206647, 'watchlist': true}" \
"https://api.themoviedb.org/3/account/ID/watchlist?api_key=###&session_id=###"

curl -H "Accept: application/json" -H "Content-Type: application/json" -d \
"{'media_type': 'movie', 'media_id': 206647, 'watchlist': false}" \
"https://api.themoviedb.org/3/account/ID/watchlist?api_key=###&session_id=###"

In case if this is useful to anyone, I was having the same problem, could add movies to the "Favorites List" but not delete them. I mistakenly set the favorite parameter in the HTTPBody as a String. So even that it was set to false, the backed code was probably reading it as true because it was a String. Hence no error was being generated. Once I ensured favorite is a Bool, I was able to delete movies from the "Favorites List".

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden