Random Famous Quotes

免费增值
通过 Andres Olvera | 已更新 17일 전 | Data
人气

9.4 / 10

延迟

459ms

服务等级

100%

Health Check

N/A

返回所有讨论

Movie quotes request returns famous quotes

Rapid account: Joshua Holmes
JoshuaHolmes
10년 전

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년 전

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

Rapid account: Andruxnet
andruxnet Commented 5년 전

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년 전

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년 전

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년 전

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년 전

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년 전

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년 전

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년 전

Still the same thing.

Rapid account: Efekanegeli
efekanegeli Commented 9년 전

Any progress on this issue?

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论