public function get($url, $data) {
        curl_setopt($this->_ch, CURLOPT_CUSTOMREQUEST, 'GET');
        curl_setopt($this->_ch, CURLOPT_URL, sprintf( "%s?%s", $url, http_build_query($data, '', '&', PHP_QUERY_RFC3986)));
        curl_setopt($this->_ch, CURLOPT_HTTPHEADER, array("Accept:application/json", "Content-Type: application/json"));

        return $this->_exec();
    }
public function get($url, $data) {
        curl_setopt($this->_ch, CURLOPT_CUSTOMREQUEST, 'GET');
        curl_setopt($this->_ch, CURLOPT_URL, sprintf( "%s?%s", $url, http_build_query($data, '', '&', PHP_QUERY_RFC3986)));
        curl_setopt($this->_ch, CURLOPT_HTTPHEADER, array("Accept:application/json", "Content-Type: application/json"));

        return $this->_exec();
    }
public function get ( $ url , $ data ) { curl_setopt ( $ this -> _ch , CURLOPT_CUSTOMREQUEST , 'GET' ) ; curl_setopt ( $ this -> _ch , CURLOPT_URL , sprintf ( "%s?%s" , $ url , http_build_query ( $ data , '' , '&' , PHP_QUERY_RFC3986 ) ) ) ; curl_setopt ( $ this -> _ch , CURLOPT_HTTPHEADER , array ( "Accept:application/json" , "Content-Type: application/json" ) ) ; return $ this -> _exec ( ) ; }
Perform an HTTP GET

@param string $url The URL to send the GET request to.
@param array $data An array of parameters to be added to the query string.
@return mixed A JSON decoded PHP variable representing the HTTP response.
@access public
Perform an HTTP GET