Random Famous Quotes

FREEMIUM
By Andres Olvera | Updated 4 months ago | Data
Popularity

9.4 / 10

Latency

676ms

Service Level

100%

Back to All Discussions

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

avatar
Thunderkilll
4 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

avatar
andruxnet commented 4 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.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 5 - Votes: 1