private function curlInit()
    {
        $curlHandle = curl_init();

        curl_setopt($curlHandle, CURLOPT_ENCODING, 'gzip,deflate');

        curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curlHandle, CURLOPT_VERBOSE, false);
        curl_setopt($curlHandle, CURLOPT_HEADER, true);

        curl_setopt($curlHandle, CURLOPT_USERPWD, (string)$this->credentials);

        curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);

		curl_setopt($curlHandle, CURLOPT_TIMEOUT, 4);

        curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);

        return $curlHandle;
    }
private function curlInit()
    {
        $curlHandle = curl_init();

        curl_setopt($curlHandle, CURLOPT_ENCODING, 'gzip,deflate');

        curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curlHandle, CURLOPT_VERBOSE, false);
        curl_setopt($curlHandle, CURLOPT_HEADER, true);

        curl_setopt($curlHandle, CURLOPT_USERPWD, (string)$this->credentials);

        curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 2);

		curl_setopt($curlHandle, CURLOPT_TIMEOUT, 4);

        curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);

        return $curlHandle;
    }
private function curlInit ( ) { $ curlHandle = curl_init ( ) ; curl_setopt ( $ curlHandle , CURLOPT_ENCODING , 'gzip,deflate' ) ; curl_setopt ( $ curlHandle , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ curlHandle , CURLOPT_VERBOSE , false ) ; curl_setopt ( $ curlHandle , CURLOPT_HEADER , true ) ; curl_setopt ( $ curlHandle , CURLOPT_USERPWD , ( string ) $ this -> credentials ) ; curl_setopt ( $ curlHandle , CURLOPT_SSL_VERIFYPEER , false ) ; curl_setopt ( $ curlHandle , CURLOPT_SSL_VERIFYHOST , 2 ) ; curl_setopt ( $ curlHandle , CURLOPT_TIMEOUT , 4 ) ; curl_setopt ( $ curlHandle , CURLOPT_FOLLOWLOCATION , true ) ; return $ curlHandle ; }
Initialise cURL with the options we need
to communicate successfully with API URL.
@param void
@return resource
Initialise cURL with the options we need to communicate successfully with API URL .