protected function _exec() {
        $response = curl_exec($this->_ch);
        $this->_last_info = curl_getinfo($this->_ch);
        $error = curl_error( $this->_ch );
        if ( $error ) {
            throw new \Exception($error);
        }

        return $response;
    }
protected function _exec() {
        $response = curl_exec($this->_ch);
        $this->_last_info = curl_getinfo($this->_ch);
        $error = curl_error( $this->_ch );
        if ( $error ) {
            throw new \Exception($error);
        }

        return $response;
    }
protected function _exec ( ) { $ response = curl_exec ( $ this -> _ch ) ; $ this -> _last_info = curl_getinfo ( $ this -> _ch ) ; $ error = curl_error ( $ this -> _ch ) ; if ( $ error ) { throw new \ Exception ( $ error ) ; } return $ response ; }
Execute a curl request. Maintain the info from the request in a variable

@return mixed A JSON decoded PHP variable representing the HTTP response.
@access protected
@throws Exception
Execute a curl request . Maintain the info from the request in a variable