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.
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Michael Stubblefield
el 13 de julio de 2016 a las 19:19
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
Contestado por Michael Stubblefield
el 14 de julio de 2016 a las 11:30
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.
Contestado por Travis Bell
el 15 de julio de 2016 a las 10:43
Hi Michael,
Happy to hear you figured it out.