Xbox Live Client - HTTP Client wrapper

Xbox Live Client

Basic factory that stores XboxLiveLanguage, User authorization data and available Providers

class xbox.webapi.api.client.XboxLiveClient(userhash, auth_token, xuid, language=<xbox.webapi.api.language.XboxLiveLocale object>)

Bases: object

__init__(userhash, auth_token, xuid, language=<xbox.webapi.api.language.XboxLiveLocale object>)

Provide various Web API from Xbox Live

Parameters:
  • userhash (str) – Userhash obtained by authentication with Xbox Live Server
  • auth_token (str) – Authentication Token (XSTS), obtained by authentication with Xbox Live Server
  • xuid (str/int) – Xbox User Identification of your Xbox Live Account
  • language (str) – Member of XboxLiveLanguage
xuid

Gets the Xbox User ID

Returns:Xbox User ID
Return type:int
language

Gets the active Xbox Live Language

Returns:Active Xbox Live language
Return type:XboxLiveLanguage
session

Wrapper around requests session

Returns:Instance of requests.session - Xbox Live Authorization header is set.
Return type:object