Module TryExcept body ImportFrom alias alias alias alias alias handlers ExceptHandler body ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str Return TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str NameLoad keyword NameLoad If CompareEq SubscriptLoad NameLoad Index Str Num body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Call NameLoad NameLoad decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareEq NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str Return TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Str NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Call NameLoad NameLoad decorator_list decorator_list Call NameLoad Str
N/A N/A N/A httplib BAD_REQUEST FORBIDDEN NOT_FOUND INTERNAL_SERVER_ERROR OK N/A N/A N/A http.client BAD_REQUEST FORBIDDEN NOT_FOUND INTERNAL_SERVER_ERROR OK routes route api APIBaseHandler EntityBuilder constants DEVICE_TYPE_IOS N/A binascii TokenV2HandlerGet N/A APIBaseHandler N/A delete N/A N/A self token N/A N/A N/A Delete a token
         N/A N/A N/A N/A self can delete_token N/A N/A N/A N/A self send_response FORBIDDEN N/A dict error No permission to delete token N/A N/A N/A N/A result N/A N/A N/A N/A self db tokens remove N/A token token safe True N/A N/A N/A result N/A n 0 N/A N/A N/A N/A self send_response NOT_FOUND N/A dict status Token does't exist N/A N/A N/A N/A self send_response OK N/A dict status deleted N/A N/A N/A Exception N/A ex N/A N/A N/A N/A self send_response INTERNAL_SERVER_ERROR N/A dict error N/A str ex N/A N/A N/A route /api/v2/tokens/([^/]+) TokenV2Handler N/A APIBaseHandler N/A post N/A N/A self N/A N/A N/A Create a new token
         N/A N/A N/A N/A self can create_token N/A N/A N/A N/A self send_response FORBIDDEN N/A dict error No permission to create token N/A N/A data N/A N/A self json_decode N/A N/A self request body N/A device N/A N/A N/A N/A data get device DEVICE_TYPE_IOS lower N/A channel N/A N/A data get channel default N/A devicetoken N/A N/A data get token N/A N/A device DEVICE_TYPE_IOS N/A N/A N/A N/A len devicetoken 64 N/A N/A N/A N/A self send_response BAD_REQUEST N/A dict error Invalid token N/A N/A N/A N/A N/A N/A binascii unhexlify devicetoken N/A N/A N/A Exception N/A ex N/A N/A N/A N/A self send_response BAD_REQUEST N/A dict error Invalid token N/A token N/A N/A EntityBuilder build_token devicetoken device N/A self appname channel N/A N/A N/A result N/A N/A N/A N/A self db tokens update N/A device token appname device devicetoken N/A self appname token safe True upsert True N/A N/A result N/A updatedExisting N/A N/A N/A N/A self add_to_log Token exists devicetoken N/A N/A N/A self send_response OK N/A N/A N/A N/A self send_response OK N/A N/A N/A self add_to_log Add token devicetoken N/A N/A N/A Exception N/A ex N/A N/A N/A N/A self add_to_log Cannot add token devicetoken warning N/A N/A N/A self send_response INTERNAL_SERVER_ERROR N/A dict error N/A str ex N/A N/A N/A route /api/v2/tokens[\/]?