Random Famous Quotes

フリーミアム
よって Andres Olvera | 更新済み il y a 5 mois | Data
人気

9.4 / 10

レイテンシー

9,549ms

サービスレベル

93%

すべてのディスカッションに戻る

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

Rapid account: Thunderkilll
Thunderkilll
il y a 4 ans

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

<?php

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

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

echo $response

?>
can you help me

Rapid account: Andruxnet
andruxnet Commented il y a 4 ans

Hi,

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