Lists provider¶
EPLists - Mainly used for XBL Pins
pythonxbox.api.provider.lists.ListsProvider(client)
¶
Bases: BaseProvider
Source code in src/pythonxbox/api/provider/baseprovider.py
LISTS_URL = 'https://eplists.xboxlive.com'
class-attribute
instance-attribute
¶
HEADERS_LISTS = {'Content-Type': 'application/json', 'x-xbl-contract-version': '2'}
class-attribute
instance-attribute
¶
SEPERATOR = '.'
class-attribute
instance-attribute
¶
remove_items(xuid, post_body, listname='XBLPins', **kwargs)
async
¶
Remove items from specific list, defaults to "XBLPins"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xuid
|
str / int
|
Xbox User Id |
required |
listname
|
str
|
Name of list to edit |
'XBLPins'
|
Returns:
| Type | Description |
|---|---|
ListMetadata
|
class: |
Source code in src/pythonxbox/api/provider/lists/__init__.py
get_items(xuid, listname='XBLPins', **kwargs)
async
¶
Get items from specific list, defaults to "XBLPins"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xuid
|
str / int
|
Xbox User Id |
required |
listname
|
str
|
Name of list to edit |
'XBLPins'
|
Returns:
| Type | Description |
|---|---|
ListsResponse
|
class: |
Source code in src/pythonxbox/api/provider/lists/__init__.py
insert_items(xuid, post_body, listname='XBLPins', **kwargs)
async
¶
Insert items to specific list, defaults to "XBLPins"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xuid
|
str / int
|
Xbox User Id |
required |
listname
|
str
|
Name of list to edit |
'XBLPins'
|
Returns:
| Type | Description |
|---|---|
ListMetadata
|
class: |