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.Session(auth_mgr)[source]

Bases: object

Parameters:

auth_mgr (AuthenticationManager) –

async request(method, url, include_auth=True, include_cv=True, **kwargs)[source]

Proxy Request and add Auth/CV headers.

Parameters:
  • method (str) –

  • url (str) –

  • include_auth (bool) –

  • include_cv (bool) –

  • kwargs (Any) –

Return type:

Response

async get(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

async options(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

async head(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

async post(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

async put(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

async patch(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

async delete(url, **kwargs)[source]
Parameters:
  • url (str) –

  • kwargs (Any) –

Return type:

Response

class xbox.webapi.api.client.XboxLiveClient(auth_mgr, language=<xbox.webapi.api.language.XboxLiveLanguage object>)[source]

Bases: object

Parameters:
property xuid: str

Gets the Xbox User ID

Returns: Xbox user Id

property language: XboxLiveLanguage

Gets the active Xbox Live Language

Returns: Active Xbox Live language