Random Famous Quotes

FREEMIUM
Por Andres Olvera | Actualizada vor 16 Tagen | Data
Popularidad

9.4 / 10

Latencia

463ms

Nivel de servicio

100%

Health Check

N/A

Volver a todas las conversaciones

Movie quotes request returns famous quotes

Rapid account: Joshua Holmes
JoshuaHolmes
vor 10 Jahren

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 vor 5 Jahren

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

Rapid account: Andruxnet
andruxnet Commented vor 5 Jahren

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 vor 8 Jahren

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 vor 8 Jahren

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 vor 8 Jahren

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 vor 8 Jahren

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 vor 8 Jahren

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 vor 9 Jahren

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 vor 9 Jahren

Still the same thing.

Rapid account: Efekanegeli
efekanegeli Commented vor 9 Jahren

Any progress on this issue?

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios