Random Famous Quotes

FREEMIUM
By Andres Olvera | Updated 4 days ago | Data
Popularity

9.5 / 10

Latency

469ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Movie quotes request returns famous quotes

Rapid account: Joshua Holmes
JoshuaHolmes
10 years ago

WHen specifically calling for the movies category, a quote from either category is returned. Any chance of this being corrected?

Rapid account: Andruxnet
andruxnet Commented 5 years ago

I’ll close this thread, if you keep having issues please open a new one

Rapid account: Andruxnet
andruxnet Commented 5 years ago

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

Rapid account: X XDEF 4 LT Xx
xXDEF4LTXx Commented 8 years ago

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.

Rapid account: Andruxnet
andruxnet Commented 8 years ago

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?

Rapid account: Dfully 0814
dfully0814 Commented 8 years ago

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.

Rapid account: Andruxnet
andruxnet Commented 8 years ago

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:

            $ch = curl_init();
            curl_setopt( $ch, CURLOPT_URL, 'https://andruxnet-random-famous-quotes.p.mashape.com/' );
            curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
            curl_setopt( $ch, CURLOPT_POSTFIELDS, 'cat=' . $category_name );
            curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'X-Mashape-Authorization: $mashape_key' ) );

            $quote_data = json_decode( curl_exec( $ch ) );
            curl_close( $ch );
Rapid account: Andruxnet
andruxnet Commented 8 years ago

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.

Rapid account: Eldon Mc Guinness
Eldon.McGuinness Commented 9 years ago

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.

Rapid account: 1 Hella
1hella Commented 9 years ago

Still the same thing.

Rapid account: Efekanegeli
efekanegeli Commented 9 years ago

Any progress on this issue?

Join in the discussion - add comment below:

Login / Signup to post new comments