code: def expire_token(self, token):
          
          r = requests.post(self._login_uri("/oauth/token/expire"),
              data={
                  "client_id": self.client_id,
                  "client_secret": self.client_secret,
                  "token": token,
              })
  
          if r.status_code != 200:
              raise ApiError("Failed to expire token!", r)
          return True
docs: 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.