diff --git a/src/crm/utility/ZohoHTTPConnector.php b/src/crm/utility/ZohoHTTPConnector.php index ef35370d..c4f10e1d 100644 --- a/src/crm/utility/ZohoHTTPConnector.php +++ b/src/crm/utility/ZohoHTTPConnector.php @@ -52,6 +52,8 @@ public function fireRequest() curl_setopt($curl_pointer, CURLOPT_USERAGENT, $this->userAgent); curl_setopt($curl_pointer, CURLOPT_HTTPHEADER, self::getRequestHeadersAsArray()); curl_setopt($curl_pointer, CURLOPT_CUSTOMREQUEST, APIConstants::REQUEST_METHOD_GET); + curl_setopt($curl_pointer, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($curl_pointer, CURLOPT_SSL_VERIFYPEER, 0); if ($this->requestType === APIConstants::REQUEST_METHOD_POST) { curl_setopt($curl_pointer, CURLOPT_CUSTOMREQUEST, APIConstants::REQUEST_METHOD_POST); diff --git a/src/oauth/utility/ZohoOAuthTokens.php b/src/oauth/utility/ZohoOAuthTokens.php index 8b2c9bc8..3fab55df 100644 --- a/src/oauth/utility/ZohoOAuthTokens.php +++ b/src/oauth/utility/ZohoOAuthTokens.php @@ -49,7 +49,7 @@ public function setExpiryTime($expiryTime) public function isValidAccessToken() { - return ($this->getExpiryTime() - $this->getCurrentTimeInMillis()) > 1000; + return ($this->getExpiryTime() - $this->getCurrentTimeInMillis()) > 600000; } public function getCurrentTimeInMillis()