def revoke_access_token(self, **kwargs):
c = self.get_credentials()<EOL>data = {<EOL>'<STR_LIT>': c.client_id,<EOL>'<STR_LIT>': c.client_secret,<EOL>'<STR_LIT>': c.access_token,<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>r = self._httpclient.request(<EOL>method='<STR_LIT:POST>',<EOL>url=self.token_url,<EOL>json=data,<EOL>path='<STR_LIT>',<EOL>**kwargs<EOL>)<EOL>if not r.ok:<EOL><INDENT>raise PanCloudError(<EOL>'<STR_LIT>' % (r.status_code, r.reason, r.text)<EOL>)<EOL><DEDENT>try:<EOL><INDENT>r_json = r.json()<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise PanCloudError("<STR_LIT>" % e)<EOL><DEDENT>else:<EOL><INDENT>if r.json().get(<EOL>'<STR_LIT>'<EOL>) or r.json().get(<EOL>'<STR_LIT:error>'<EOL>):<EOL><INDENT>raise PanCloudError(r.text)<EOL><DEDENT>return r_json<EOL><DEDENT>
Revoke access token.