public static function getAuthSubTokenInfo(
            $token, $client = null, $request_uri = self::AUTHSUB_TOKEN_INFO_URI)
    {
        $client = self::getHttpClient($token, $client);

        if ($client instanceof Zend_Gdata_HttpClient) {
            $filterResult = $client->filterHttpRequest('GET', $request_uri);
            $url = $filterResult['url'];
            $headers = $filterResult['headers'];
            $client->setHeaders($headers);
            $client->setUri($url);
        } else {
            $client->setUri($request_uri);
        }

        ob_start();
        try {
            $response = $client->request('GET');
        } catch (Zend_Http_Client_Exception $e) {
            ob_end_clean();
            require_once 'Zend/Gdata/App/HttpException.php';
            throw new Zend_Gdata_App_HttpException($e->getMessage(), $e);
        }
        ob_end_clean();
        return $response->getBody();
    }
public static function getAuthSubTokenInfo(
            $token, $client = null, $request_uri = self::AUTHSUB_TOKEN_INFO_URI)
    {
        $client = self::getHttpClient($token, $client);

        if ($client instanceof Zend_Gdata_HttpClient) {
            $filterResult = $client->filterHttpRequest('GET', $request_uri);
            $url = $filterResult['url'];
            $headers = $filterResult['headers'];
            $client->setHeaders($headers);
            $client->setUri($url);
        } else {
            $client->setUri($request_uri);
        }

        ob_start();
        try {
            $response = $client->request('GET');
        } catch (Zend_Http_Client_Exception $e) {
            ob_end_clean();
            require_once 'Zend/Gdata/App/HttpException.php';
            throw new Zend_Gdata_App_HttpException($e->getMessage(), $e);
        }
        ob_end_clean();
        return $response->getBody();
    }
public static function getAuthSubTokenInfo ( $ token , $ client = null , $ request_uri = self :: AUTHSUB_TOKEN_INFO_URI ) { $ client = self :: getHttpClient ( $ token , $ client ) ; if ( $ client instanceof Zend_Gdata_HttpClient ) { $ filterResult = $ client -> filterHttpRequest ( 'GET' , $ request_uri ) ; $ url = $ filterResult [ 'url' ] ; $ headers = $ filterResult [ 'headers' ] ; $ client -> setHeaders ( $ headers ) ; $ client -> setUri ( $ url ) ; } else { $ client -> setUri ( $ request_uri ) ; } ob_start ( ) ; try { $ response = $ client -> request ( 'GET' ) ; } catch ( Zend_Http_Client_Exception $ e ) { ob_end_clean ( ) ; require_once 'Zend/Gdata/App/HttpException.php' ; throw new Zend_Gdata_App_HttpException ( $ e -> getMessage ( ) , $ e ) ; } ob_end_clean ( ) ; return $ response -> getBody ( ) ; }
get token information

@param string $token The token to retrieve information about
@param Zend_Http_Client $client (optional) HTTP client to use to
make the request
@param string $request_uri (optional) URI to which to direct
the information request
get token information