Suporte do The Movie Database

The documentation doesn't specify. It only says json. I assumed it was the id of the movie or TV series but that didn't work. Here is what I tried {"id": 12}. I even tried adding quotations marks around the numbers without success. That id exists, it leads to Finding Nemo. However it doesn't work.

2 respostas (na página 1 de 1)

Jump to last post

@HelloUser000 said:

Here is what I tried {"id": 12}.

You need three key-value pair element,

{
   media_type: 'movie', 
   media_id: 11, 
   watchlist: true
}

To get request JSON body follow this steps:

  1. Go to (click this)
  2. On right side, select your perefered language programming
  3. On dropdown REQUEST EXAMPLE just click REQUEST EXAMPLE
  4. For example I choose Node and using FETCH REQUEST, the output on the box area will be
const url = 'https://api.themoviedb.org/3/account/21457174/watchlist';
const options = {
  method: 'POST',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    Authorization: 'Bearer {{YOUR_API_READ_ACCESS_TOKEN}}'
  },
  body: JSON.stringify({media_type: 'movie', media_id: 11, watchlist: true})
};
fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));

you can see the json body is:

...
body: JSON.stringify({media_type: 'movie', media_id: 11, watchlist: true})
...

Thanks

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