I'm trying to query with parameters. For example:
http://api.themoviedb.org/3/discover/movie?api_key=KEY&year=1999
No matter what parameters I add to a query, it just returns the default output as if the added parameters were not there.
I'm wondering if it's something wrong with my api key? It's been a while.
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 Michael Stubblefield
le 13 juillet 2016 à 19h19
So I just tried it in a browser and it works correctly. It is only giving me this problem with curl:
curl http://api.themoviedb.org/3/discover/movie?api_key=KEY&year=1999
Réponse de Michael Stubblefield
le 14 juillet 2016 à 11h30
so figured it out. if anyone sees the same issue, you need to quote the url from the command line. If not quoted, '&' is interpreted by bash.
Réponse de Travis Bell
le 15 juillet 2016 à 10h43
Hi Michael,
Happy to hear you figured it out.