def get(self): token = utf8(self.get_argument("token")) try: mc.delete(token) self.api_response(dict(token=token)) except Exception as e: self.error(status_code=500, status_txt='ERROR', data=str(e))
def get(self): registration_id = utf8(self.get_argument("registration_id")) try: mc.delete(registration_id) self.api_response(dict(registration_id=registration_id)) except Exception as e: self.error(status_code=500, status_txt="ERROR", data=str(e))