protected function getToken(&$request, $consumer, $token_type = "access")
    {
        $token_field = @$request->getParameter('oauth_token');
        $token = $this->data_store->lookupToken(
            $consumer, $token_type, $token_field
        );
        if (!$token) {
            throw new OAuthException("Invalid $token_type token: $token_field");
        }
        
        return $token;
    }
protected function getToken(&$request, $consumer, $token_type = "access")
    {
        $token_field = @$request->getParameter('oauth_token');
        $token = $this->data_store->lookupToken(
            $consumer, $token_type, $token_field
        );
        if (!$token) {
            throw new OAuthException("Invalid $token_type token: $token_field");
        }
        
        return $token;
    }
protected function getToken ( & $ request , $ consumer , $ token_type = "access" ) { $ token_field = @ $ request -> getParameter ( 'oauth_token' ) ; $ token = $ this -> data_store -> lookupToken ( $ consumer , $ token_type , $ token_field ) ; if ( ! $ token ) { throw new OAuthException ( "Invalid $token_type token: $token_field" ) ; } return $ token ; }
Try to find the token for the provided request's token key.

@param OAuthRequest $request
@param $consumer
@param string $token_type

@throws OAuthException

@return mixed
Try to find the token for the provided request s token key .