Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- keyInfo = auth.account.APIKeyInfo()
- keyType = keyInfo.key.type
- keyExpires = keyInfo.key.expires
- keyMask = keyInfo.key.accessMask
- account_characters = {}
- if keyType == "Character":
- for character in keyInfo.characters:
- account_characters[character.characterName] = character.characterID
- character_list_mask = 8 #can be dynamically fetched @ api.api.callList.calls
- if ((keyMask & character_list_mask) == character_list_mask) and (keyType == "Character"):
- #### Fetch character Sheet
- else:
- throw Exception
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement