I am using the api in many other instances, genre has been the only on genre. I see that you added a query at the end, is that necessary? I am trying to get the list of genres to use for the movies gennre codes that I get.
You're starting your query string with an ampersand. That's not valid HTTP, so it's ignoring your API key param and only reading from the question mark and on. In my example, I fixed that for you.
Travis Bell 的回复
于 2016 年 08 月 13 日 11:38上午
Hi Luke,
I'm not sure. Everything looks fine to me. How are you making the request?
luke_simmon 的回复
于 2016 年 08 月 13 日 2:14下午
Here it is:
Travis Bell 的回复
于 2016 年 08 月 14 日 11:15上午
Even though you have your dataType set to jsonp, is is sending along a callback?
This test of mine here is working fine (make sure to replace your API key on line 11).
luke_simmon 的回复
于 2016 年 08 月 14 日 11:47上午
I am using the api in many other instances, genre has been the only on genre. I see that you added a query at the end, is that necessary? I am trying to get the list of genres to use for the movies gennre codes that I get.
Travis Bell 的回复
于 2016 年 08 月 14 日 1:55下午
No, it is not necessary. It was accidentally left from a previous example.
luke_simmon 的回复
于 2016 年 08 月 14 日 6:53下午
Cannot GET https://api.themoviedb.org/3/genre/movie/list&api_key=####?callback=jQuery22408132628371243029_1471207855881&_=1471207855884
Travis Bell 的回复
于 2016 年 08 月 15 日 12:22上午
That's not a valid HTTP request. You're looking for:
luke_simmon 的回复
于 2016 年 08 月 15 日 4:08下午
forgive me. I am not seeing a difference between your request and my request
Travis Bell 的回复
于 2016 年 08 月 15 日 7:26下午
You're starting your query string with an ampersand. That's not valid HTTP, so it's ignoring your API key param and only reading from the question mark and on. In my example, I fixed that for you.
luke_simmon 的回复
于 2016 年 08 月 16 日 1:39下午
thanks for your help. that fixed it