def reset_username(self):
     """Resets the session user's username"""
     return r.delete('/profile/username', headers=config.headers)
Exemple #2
0
 def unlike_message(self):
     """Unlikes a message"""
     resp = r.delete('/message/{}/like'.format(self.message_id))
     if resp.status_code == 204:
         return resp
     return "Error, unable to unlike the message"