def expire_token(self, token):
r = requests.post(self._login_uri("<STR_LIT>"),<EOL>data={<EOL>"<STR_LIT>": self.client_id,<EOL>"<STR_LIT>": self.client_secret,<EOL>"<STR_LIT>": token,<EOL>})<EOL>if r.status_code != <NUM_LIT:200>:<EOL><INDENT>raise ApiError("<STR_LIT>", r)<EOL><DEDENT>return True<EOL>
Given a token, makes a request to the authentication server to expire
it immediately.  This is considered a responsible way to log out a
user.  If you simply remove the session your application has for the
user without expiring their token, the user is not _really_ logged out.

:param token: The OAuth token you wish to expire
:type token: str

:returns: If the expiration attempt succeeded.
:rtype: bool

:raises ApiError: If the expiration attempt failed.