Soporte de 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 respuestas (en la 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".

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión