Skip to main content

Xbox API library

Project description

Xbox Python API

Xbox Python API wrapper based on https://xbl.io.

Installation

pip install xbox-python-api

Usage

Create an instance of the XPA class with your API key.

from xpa import XPA

xpa = XPA(api_key="YOUR_API_KEY")

Code example

from xpa import XPA

xpa = XPA(api_key="YOUR_API_KEY")

# Get account gamertag
account_info = xpa.get_account_info_xuid(xuid="xuid")
print(account_info.Gamertag)


# Get user presence
presence = xpa.get_presence(xuid="xuid")
print(presence.state)

Full documentation can be found here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xbox_python_api-0.1.2.4.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

xbox_python_api-0.1.2.4-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page