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.
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת Michael Stubblefield
ב-יולי 13, 2016 ב-7: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
תגובה מאת Michael Stubblefield
ב-יולי 14, 2016 ב-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.
תגובה מאת Travis Bell
ב-יולי 15, 2016 ב-10:43לפני חצות יום
Hi Michael,
Happy to hear you figured it out.