I am trying to fetch profile data using the google+ rest API but I'm getting this error :
Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException' with message 'cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html' in C:\wamp\www\plus3\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 51
Here is the error Screen shot:
Currently I'm working on localhost. I have tried everything which includesinstalling composer, curl... etc.Not sure what is it that I'm doing wrong; why can't I fetch data from profile?
Here is the code:
<?phpinclude_once __DIR__ . '/../vendor/autoload.php';include_once "templates/base.php"; session_start();$client = new Google_Client(); $client = new Google_Client(); $client->setApplicationName("Google+ PHP Starter Application"); // credentials are intentionally not disclosed but they are correct. $client->setClientId('XXXXXX'); $client->setClientSecret('XXXXXXX'); $client->setRedirectUri('http://localhost/....'); $client->setDeveloperKey('XXXXX'); $plus = new Google_Service_Plus($client);//Everything works fine before this line...as soon as i write the line//below to fetch results with name brett...it throws me an error. $results = $plus->people->search('brett'); ?><!doctype html><html><head><link rel='stylesheet' href='style.css' /></head><body><header><h1>Google+ Sample App</h1></header></body></html>