public function get($call, array $getParams = null)
    {
        $this->resetCallState();

        $this->call = $call;

        $this->method = 'GET';

        if ($getParams !== null && is_array($getParams)) {
            $this->getParams = $getParams;
        }

        $response = $this->getResponse();

        $response['body'] = $this->findExceptions($response);

        $this->headers = $response['headers'];

        unset($call, $getParams);

        return $this->serializer->format($response['body']);
    }
public function get($call, array $getParams = null)
    {
        $this->resetCallState();

        $this->call = $call;

        $this->method = 'GET';

        if ($getParams !== null && is_array($getParams)) {
            $this->getParams = $getParams;
        }

        $response = $this->getResponse();

        $response['body'] = $this->findExceptions($response);

        $this->headers = $response['headers'];

        unset($call, $getParams);

        return $this->serializer->format($response['body']);
    }
public function get ( $ call , array $ getParams = null ) { $ this -> resetCallState ( ) ; $ this -> call = $ call ; $ this -> method = 'GET' ; if ( $ getParams !== null && is_array ( $ getParams ) ) { $ this -> getParams = $ getParams ; } $ response = $ this -> getResponse ( ) ; $ response [ 'body' ] = $ this -> findExceptions ( $ response ) ; $ this -> headers = $ response [ 'headers' ] ; unset ( $ call , $ getParams ) ; return $ this -> serializer -> format ( $ response [ 'body' ] ) ; }
Send a GET call to Twitter API via OAuth

@param string $call Twitter resource string
@param array $getParams GET parameters to send
@return mixed  Output with selected format
@throws TwitterException
Send a GET call to Twitter API via OAuth