original_string: public static function AuthSubRevokeToken($token, $client = null,
                                                $request_uri = self::AUTHSUB_REVOKE_TOKEN_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);
              $client->resetParameters();
          } 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();
          // Parse Google's response
          if ($response->isSuccessful()) {
              return true;
          } else {
              return false;
          }
      }
code: public static function AuthSubRevokeToken($token, $client = null,
                                                $request_uri = self::AUTHSUB_REVOKE_TOKEN_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);
              $client->resetParameters();
          } 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();
          // Parse Google's response
          if ($response->isSuccessful()) {
              return true;
          } else {
              return false;
          }
      }
code_tokens: public static function AuthSubRevokeToken ( $ token , $ client = null , $ request_uri = self :: AUTHSUB_REVOKE_TOKEN_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 ) ; $ client -> resetParameters ( ) ; } 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 ( ) ; // Parse Google's response if ( $ response -> isSuccessful ( ) ) { return true ; } else { return false ; } }
docstring: Revoke a token
  
  @param string $token The token to revoke
  @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 revokation request
  @return boolean Whether the revokation was successful
  @throws Zend_Gdata_App_HttpException
docstring_tokens: Revoke a token