public function httpGet($url, $userAgent = null)
{
$ch = $this->commonCurlParams($url, $userAgent);
// Setting the HTTP header with the Access Token only for Getting user info
if ($this->header) {
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: bearer ' . $this->accessToken));
}
$response = $this->execute($ch);
return $response;
}