Screenshots provider¶
Screenshots - Get screenshot info
pythonxbox.api.provider.screenshots.ScreenshotsProvider(client)
¶
Bases: BaseProvider
Source code in src/pythonxbox/api/provider/baseprovider.py
SCREENSHOTS_METADATA_URL = 'https://screenshotsmetadata.xboxlive.com'
class-attribute
instance-attribute
¶
HEADERS_SCREENSHOTS_METADATA = {'x-xbl-contract-version': '5'}
class-attribute
instance-attribute
¶
get_recent_community_screenshots_by_title_id(title_id, **kwargs)
async
¶
Get recent community screenshots by Title Id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title_id
|
str
|
Title Id to get screenshots for |
required |
Returns:
| Type | Description |
|---|---|
ScreenshotResponse
|
class: |
Source code in src/pythonxbox/api/provider/screenshots/__init__.py
get_recent_own_screenshots(title_id=None, skip_items=0, max_items=25, **kwargs)
async
¶
Get own recent screenshots, optionally filter for title Id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title_id
|
str | None
|
Title ID to filter |
None
|
skip_items
|
int
|
Item count to skip |
0
|
max_items
|
int
|
Maximum item count to load |
25
|
Returns:
| Type | Description |
|---|---|
ScreenshotResponse
|
class: |
Source code in src/pythonxbox/api/provider/screenshots/__init__.py
get_recent_screenshots_by_xuid(xuid, title_id=None, skip_items=0, max_items=25, **kwargs)
async
¶
Get recent screenshots by XUID, optionally filter for title Id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xuid
|
str
|
XUID of user to get screenshots from |
required |
title_id
|
str | None
|
Optional title id filter |
None
|
skip_items
|
int
|
Item count to skip |
0
|
max_items
|
int
|
Maximum item count to load |
25
|
Returns:
| Type | Description |
|---|---|
ScreenshotResponse
|
class: |
Source code in src/pythonxbox/api/provider/screenshots/__init__.py
get_saved_community_screenshots_by_title_id(title_id, **kwargs)
async
¶
Get saved community screenshots by Title Id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title_id
|
str
|
Title Id to get screenshots for |
required |
Returns:
| Type | Description |
|---|---|
ScreenshotResponse
|
class: |
Source code in src/pythonxbox/api/provider/screenshots/__init__.py
get_saved_own_screenshots(title_id=None, skip_items=0, max_items=25, **kwargs)
async
¶
Get own saved screenshots, optionally filter for title Id an
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title_id
|
str | None
|
Optional Title ID to filter |
None
|
skip_items
|
int
|
Item count to skip |
0
|
max_items
|
int
|
Maximum item count to load |
25
|
Returns:
| Type | Description |
|---|---|
ScreenshotResponse
|
class: |
Source code in src/pythonxbox/api/provider/screenshots/__init__.py
get_saved_screenshots_by_xuid(xuid, title_id=None, skip_items=0, max_items=25, **kwargs)
async
¶
Get saved screenshots by XUID, optionally filter for title Id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xuid
|
str
|
XUID of user to get screenshots from |
required |
title_id
|
str | None
|
Optional title id filter |
None
|
skip_items
|
int
|
Item count to skip |
0
|
max_items
|
int
|
Maximum item count to load |
25
|
Returns:
| Type | Description |
|---|---|
ScreenshotResponse
|
class: |