The endpoint was updated a couple of years ago to a GET request. I can see in your sample code you’re doing a POST instead… I just tested and every time it returns the correct category… let me know if you still have this issue, and I can help troubleshoot
This still seems to be an issue. The first couple of calls with the cat=movies URL parameter return the movie category. However, after the first 3 or 4, famous quotes are returned intermittently also.
This issue has been fixed. I just placed an announcement with a sample cURL call I use to grab a quote from either category, or you can check it out here too:
Yea, just came across this api myself and the movie bit is a bit of a hindrance. Seeing how this is 10 months old it might be time to consider another avenue.
I’ll close this thread, if you keep having issues please open a new one
The endpoint was updated a couple of years ago to a GET request. I can see in your sample code you’re doing a POST instead… I just tested and every time it returns the correct category… let me know if you still have this issue, and I can help troubleshoot
response = Unirest.post “https://andruxnet-random-famous-quotes.p.mashape.com/?cat=famous”,
headers:{
“X-Mashape-Key” => “nulled”,
“Content-Type” => “application/x-www-form-urlencoded”,
“Accept” => “application/json”
}
parse = JSON.parse(response.raw_body)
puts"\n#{parse[‘quote’]} \n- #{parse[‘author’]}"
This calls for famous quotes, yet every few requests returns a movie quote.
I just tested both categories for several times and they are returning the correct category. Can you share the code you’re using to call the API?
This still seems to be an issue. The first couple of calls with the cat=movies URL parameter return the movie category. However, after the first 3 or 4, famous quotes are returned intermittently also.
This issue has been fixed. I just placed an announcement with a sample cURL call I use to grab a quote from either category, or you can check it out here too:
I apologize for the delay on this. Been very busy with other projects, but I intend on getting this solved in the next few days.
Thanks for hanging on.
Yea, just came across this api myself and the movie bit is a bit of a hindrance. Seeing how this is 10 months old it might be time to consider another avenue.
Still the same thing.
Any progress on this issue?