xbox-smartglass-rest-python
1.9K
.. image:: https://pypip.in/version/xbox-smartglass-rest/badge.svg :target: https://pypi.python.org/pypi/xbox-smartglass-rest/ :alt: Latest Version
.. image:: https://travis-ci.com/OpenXbox/xbox-smartglass-rest-python.svg?branch=master :target: https://travis-ci.com/OpenXbox/xbox-smartglass-rest-python
.. image:: https://img.shields.io/badge/discord-OpenXbox-blue.svg :target: https://discord.gg/E8kkJhQ :alt: Discord chat channel
Open-Source Xbox One Smartglass REST server.
For in-depth information, check out the documentation: (https://openxbox.github.io)
Via pip: ::
pip install xbox-smartglass-rest
Start the server: ::
$ xbox-rest-server
Authenticate from scratch ::
For non-2FA enabled account: http://localhost:5557/auth/login
For 2FA: http://localhost:5557/auth/oauth
# Store tokens on valid authentication
http://localhost:5557/auth/store
Load tokens from disk ::
http://localhost:5557/auth/load
http://localhost:5557/auth/refresh
2FA OAuth - POST ::
# Get authorize url
GET http://localhost:5557/auth/url
Response-Parameters (JSON): authorization_url
# Submit redirect url
POST http://localhost:5557/auth/oauth
Request-Parameters: redirect_uri
Regular (non-2FA) login - POST ::
POST http://localhost:5557/auth/login
Request-Parameters: email, password
To see all API endpoints: ::
http://localhost:5557
Usual usage: ::
# (Optional) Poweron console
http://localhost:5557/device/<liveid>/poweron
# Enumerate devices on network
http://localhost:5557/device
# Connect to console
# NOTE: You can POST to /connect with parameter: connect_anonymous=true
# .. if console allows it ..
http://localhost:5557/device/<liveid>/connect
# Use other API endpoints ...
When reporting bugs, please make sure to provide the output of the following endpoint
::
http://localhost:5557/versions
This package uses parts of Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage
Content type
Image
Digest
Size
108.3 MB
Last updated
about 8 years ago
docker pull nguyer/xbox-smartglass-rest-python