protected function doCurl()
    {
        $response = curl_exec($this->curl);

        if (curl_errno($this->curl)) {
            throw new \Exception(curl_error($this->curl), 1);
        }

        $curlInfo = curl_getinfo($this->curl);

        $results = array(
            'curl_info' => $curlInfo,
            'response' => $response,
        );

        return $results;
    }
protected function doCurl()
    {
        $response = curl_exec($this->curl);

        if (curl_errno($this->curl)) {
            throw new \Exception(curl_error($this->curl), 1);
        }

        $curlInfo = curl_getinfo($this->curl);

        $results = array(
            'curl_info' => $curlInfo,
            'response' => $response,
        );

        return $results;
    }
protected function doCurl ( ) { $ response = curl_exec ( $ this -> curl ) ; if ( curl_errno ( $ this -> curl ) ) { throw new \ Exception ( curl_error ( $ this -> curl ) , 1 ) ; } $ curlInfo = curl_getinfo ( $ this -> curl ) ; $ results = array ( 'curl_info' => $ curlInfo , 'response' => $ response , ) ; return $ results ; }
Perform the Curl request.

@return array
Perform the Curl request .