, and since then the developers have been busy behind the scenes working on various tools, and today they just released their
DependenciesInstall
Via pip:
Code:
pip install xbox-smartglass-rest
How to use
Authenticate first (Authentication provided by xbox-webapi-python):
Code:
$ xbox-authenticate
# Alternative: Use the ncurses terminal ui, it has authentication integrated
$ xbox-tui
# If you want to authenticate via browser, use:
$ xbox-auth-via-browser
Now, start the server:
Code:
$ xbox-rest-server
To see all API endpoints:
http://localhost:5557
Usual usage:
Code:
# Read tokens from appdirs location
http://localhost:5557/authentication/refresh
# (Optional) Poweron console
http://localhost:5557/<liveid>/poweron
# Enumerate devices on network
http://localhost:5557/devices
# Connect to console
http://localhost:5557/<liveid>/connect
# Use other API endpoints ...
Known issues
- Find, report and/or fix them
Contribute
- Report bugs/suggest features
- Improve / add endpoints
Credits: This package uses parts of
Cookiecutter and the
audreyr/cookiecutter-pypackage project template.
Click to expand...