Random Famous Quotes

부분 유료
분류별 Andres Olvera | 업데이트됨 6달 전 | Data

9.4 / 10

지연 시간


서비스 수준


모든 토론으로 돌아가기

Uncaught exception 'Unirest\Exception' with message 'SSL certificate problem

Rapid account: Thunderkilll
4년 전

hi I'm using php code and downloaded the Unirest from github and i followed the instruction and still don't know how to use this api


require_once ('unirest-php\src\Unirest.php');

$response = Unirest\Request::get("https://andruxnet-random-famous-quotes.p.mashape.com/?cat=famous",
"X-RapidAPI-Key" => "b6tCZGODOTmshRX3SGwKX39eANfup1NqESSjsnPp9aB0mxbvHF"

echo $response

can you help me

Rapid account: Andruxnet
andruxnet Commented 4년 전


Maybe the second argument in your query string, there is no “quot” argument. Also, the response is a JSON object and you’re trying to echo it as if it was a string.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입
등급: 5 - 투표: 1