Profile provider¶
Profile
Get Userprofiles by XUID or Gamertag
pythonxbox.api.provider.profile.ProfileProvider(client)
¶
Bases: RateLimitedProvider
Source code in src/pythonxbox/api/provider/ratelimitedprovider.py
PROFILE_URL = 'https://profile.xboxlive.com'
class-attribute
instance-attribute
¶
HEADERS_PROFILE = {'x-xbl-contract-version': '3'}
class-attribute
instance-attribute
¶
SEPARATOR = ','
class-attribute
instance-attribute
¶
RATE_LIMITS = {'burst': 10, 'sustain': 30}
class-attribute
instance-attribute
¶
get_profiles(xuid_list, **kwargs)
async
¶
Get profile info for list of xuids
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xuid_list
|
list
|
List of xuids |
required |
Returns:
| Type | Description |
|---|---|
ProfileResponse
|
class: |
Source code in src/pythonxbox/api/provider/profile/__init__.py
get_profile_by_xuid(target_xuid, **kwargs)
async
¶
Get Userprofile by xuid
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_xuid
|
str
|
XUID to get profile for |
required |
Returns:
| Type | Description |
|---|---|
ProfileResponse
|
class: |
Source code in src/pythonxbox/api/provider/profile/__init__.py
get_profile_by_gamertag(gamertag, **kwargs)
async
¶
Get Userprofile by gamertag
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gamertag
|
str
|
Gamertag to get profile for |
required |
Returns:
| Type | Description |
|---|---|
ProfileResponse
|
class: |