https://developer.themoviedb.org/reference/account-add-to-watchlist i am not sure what kind of body data i need to pass to this api
https://api.themoviedb.org/3/account/${id}/watchlist
below is my provide BODY PARAMS but it not work
body: JSON.stringify({
adult: false,
backdrop_path: '/znUYFf0Sez5lUmxPr3Cby7TVJ6c.jpg',
genre_ids: [12, 10751, 14, 10749],
id: 447277,
original_language: 'en',
original_title: 'The Little Mermaid',
overview: 'The youngest of King Triton’s daughters, and the most defiant, Ariel longs to find out more about the world beyond the sea, and while visiting the surface, falls for the dashing Prince Eric. With mermaids forbidden to interact with humans, Ariel makes a deal with the evil sea witch, Ursula, which gives her a chance to experience life on land, but ultimately places her life – and her father’s crown – in jeopardy.',
popularity: 4350.022,
poster_path: '/ym1dxyOk4jFcSl4Q2zmRrA5BEEN.jpg',
release_date: '2023-05-18',
title: 'The Little Mermaid',
video: false,
vote_average: 6.391,
vote_count: 1154
})
};
can you provide BODY PARAMS data example really thanks
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de robbie3999
le 29 juillet 2023 à 10h59
Hi @chunwen, to see examples on the doc page, look at the dark "Try It!" box on the right and select Examples->Request Example.
Réponse de chunwen
le 29 juillet 2023 à 12h11
big thanks i am trying to call add-to-watchlist api
may i know where to get this field value?
i am trying to find media_id by this api response https://api.themoviedb.org/3/movie/{movie_id}
but cannot get any idea
Réponse de robbie3999
le 29 juillet 2023 à 12h44
It is the tmdb id for the movie or tv series you are trying to add. So in your case it is the "{movie_id}" itself.