lib/DataSift/User.php
public function get($endpoint, $params = array(), $headers = array())
    {
        $res = call_user_func(
            array($this->_api_client, 'call'),
            $this,
            $endpoint,
            'get',
            array(),
            $headers,
            $this->getUserAgent(),
            $params
        );

        $this->_rate_limit = $res['rate_limit'];
        $this->_rate_limit_remaining = $res['rate_limit_remaining'];

        return $this->handleResponse($res);
    }
public function get($endpoint, $params = array(), $headers = array())
    {
        $res = call_user_func(
            array($this->_api_client, 'call'),
            $this,
            $endpoint,
            'get',
            array(),
            $headers,
            $this->getUserAgent(),
            $params
        );

        $this->_rate_limit = $res['rate_limit'];
        $this->_rate_limit_remaining = $res['rate_limit_remaining'];

        return $this->handleResponse($res);
    }
public function get ( $ endpoint , $ params = array ( ) , $ headers = array ( ) ) { $ res = call_user_func ( array ( $ this -> _api_client , 'call' ) , $ this , $ endpoint , 'get' , array ( ) , $ headers , $ this -> getUserAgent ( ) , $ params ) ; $ this -> _rate_limit = $ res [ 'rate_limit' ] ; $ this -> _rate_limit_remaining = $ res [ 'rate_limit_remaining' ] ; return $ this -> handleResponse ( $ res ) ; }
Make a GET call to a DataSift API endpoint.

@param string $endpoint The endpoint of the API call.
@param array  $params   The parameters to be passed along with the request.

@return array The response from the server.
@throws DataSift_Exception_APIError
@throws DataSift_Exception_RateLimitExceeded
Make a GET call to a DataSift API endpoint .