Assistance de TMDB

Hi. I've been looking at the movie methods and trying to make sure I implement all the calls for each method.

According to the documentation, some of the movie methods can accept an "append_to_response" parameter, but they don't seem to append the responses.

e.g. http://api.themoviedb.org/3/movie/78/keywords?api_key=APIKEY&append_to_response=alternative_titles,changes,credits,images,keywords,lists,releases,reviews,similar,translations,videos

Is this a documentation error or am I missing something.

Also, could you enumerate the movie, TV and people append to response values to avoid ambiguity?

4 réponses (sur la page 1 sur 1)

Jump to last post

Hi Stuart,

You won't be able to call append_to_response from a sub method. I would do the following to get what you're after:

https://api.themoviedb.org/3/movie/78?api_key=###&append_to_response=keywords,alternative_titles,changes,credits,images,keywords,lists,releases,reviews,similar,translations,videos

Also, could you enumerate the movie, TV and people append to response values to avoid ambiguity?

Could you elaborate what you mean by this? I'm not positive I understand the question :D

Cheers!

Ok, so the docs perhaps want updating, because it reads like the sub methods can have an append_to_response as a parameter, rather than, what I assume you mean, is that they can be an appended response.

What I meant by the enumerated list, is to define the list of movie, tv and people methods that can be appended to the base method. I currently have:

Movies - alternative_titles, changes, credits, images, keywords, lists, releases, reviews, similar, translations, videos

TV - alternative_titles, changes, content_ratings, credits, external_ids, images, keywords, similar, translations, videos

People - changes, combined_credits, external_ids, images, movie_credits, tagged_images, tv_credits

These just need to be listed somewhere to help people.

I, too, would like to use the append to responses to any movie method, such as the now playing request, so that I don't have to get the movie id for each movie and call separate appends. This would be faster and take fewer requests to your server. Also, if I use the separate requiests it puts me over the 40 limit and it could be avoided. Thanks!

We do not have plans to support an append_to_response type option for our featured list pages, only top level media objects.

It should be noted that we did add 3 new fields to our featured list pages which could help. The genre_ids, original_language and overview are now part of these media object responses.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion