Suporte do The Movie Database

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 respostas (na página 1 de 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".

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade