The Movie Database Support

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 replies (on page 1 of 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".

Can't find a movie or TV show? Login to create it.

ყველგან

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

მედიის გვერდზე

b go back (or to parent when applicable)
e go to edit page

ტელევიზიის სეზონების გვერდზე

(right arrow) go to next season
(left arrow) go to previous season

ტელევიზიის ეპიზოდების გვერდზე

(right arrow) go to next episode
(left arrow) go to previous episode

გამოსახულებების გვერდზე

a open add image window

რედაქტირების ყველა გვერდზე

t open translation selector
ctrl+ s submit form

დისკუსიების გვერდზე

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

გსურთ შეაფასოთ ან დაამატოთ ეს ელემენტი სიაში?

ავტორიზაცია