

def revoke(self, revoke_uri=None, refresh_token=None):
    'Revokes access via a refresh token.\n\n    Args:\n      revoke_uri: string, URI for revoke endpoint. If not provided, or if\n        None is provided, the revoke_uri attribute on the object is used.\n      refresh_token: string, refresh token. If not provided, or if None is\n        provided, the refresh_token attribute on the object is used.\n\n    Raises:\n      UnsupportedTokenType if the token is not one of the supported token\n      classes listed above.\n\n    Example:\n      >>> token.revoke()\n    '
    base_revoke_uri = (refresh_token or self.revoke_uri)
    refresh_token = (refresh_token or self.refresh_token)
    revoke_uri = atom.http_core.ParseUri(base_revoke_uri)
    revoke_uri.query['token'] = refresh_token
    http_client = atom.http_core.HttpClient()
    http_request = atom.http_core.HttpRequest(uri=revoke_uri, method='GET')
    response = http_client.request(http_request)
    if (response.status != 200):
        raise OAuth2RevokeError(response)
    else:
        self._invalid = True

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py OAuth2Token.revoke/VarMisuse@23/223 `revoke_uri`->`refresh_token`