xbox.webapi.common.userinfo module

Container for userinfo, received by Xbox Live Authorization

class xbox.webapi.common.userinfo.XboxLiveUserInfo(xuid, userhash, gamertag, age_group, privileges, user_privileges)

Bases: object

__init__(xuid, userhash, gamertag, age_group, privileges, user_privileges)

Initialize a new instance of XboxLiveUserInfo

Parameters:
  • xuid (str) – Xbox User ID
  • userhash (str) – Xbox Live Userhash
  • gamertag (str) – Xbox Gamertag
  • age_group (str) – Xbox Live age-group
  • privileges (str) – Privileges
  • user_privileges (str) – User privileges
classmethod from_dict(node)

Initialize a new instance via json data

Parameters:node (dict) – A dict holding userinfo fields
Returns:Instance of XboxLiveUserInfo
to_dict()

Get class members as dict

Returns:Xbox Live userinfo
Return type:dict