Random Famous Quotes

फ्रीमियम
द्वारा Andres Olvera | अपडेट किया गया 9 days ago | Data
लोकप्रियता

9.4 / 10

लेटेंसी

462ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

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

Rapid account: Thunderkilll
Thunderkilll
5 years ago

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 5 years ago

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.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें