EPLists - Manage Xbox Live Pins

EPLists - Mainly used for XBL Pins

class xbox.webapi.api.provider.lists.ListsProvider(client)[source]

Bases: BaseProvider

LISTS_URL = 'https://eplists.xboxlive.com'
HEADERS_LISTS = {'Content-Type': 'application/json', 'x-xbl-contract-version': '2'}
SEPERATOR = '.'
async remove_items(xuid, post_body, listname='XBLPins', **kwargs)[source]

Remove items from specific list, defaults to “XBLPins”

Parameters:
  • xuid (str/int) – Xbox User Id

  • listname (str) – Name of list to edit

  • post_body (dict) –

Returns:

List Metadata Response

Return type:

ListMetadata

async get_items(xuid, listname='XBLPins', **kwargs)[source]

Get items from specific list, defaults to “XBLPins”

Parameters:
  • xuid (str/int) – Xbox User Id

  • listname (str) – Name of list to edit

Returns:

List Response

Return type:

ListsResponse

async insert_items(xuid, post_body, listname='XBLPins', **kwargs)[source]

Insert items to specific list, defaults to “XBLPins”

Parameters:
  • xuid (str/int) – Xbox User Id

  • listname (str) – Name of list to edit

  • post_body (dict) –

Returns:

List Metadata Response

Return type:

ListMetadata