Skip to content

gitFurious/PyHaloFour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyHalo

A simple wrapper for HaloWaypoint's Halo 4 API, written in Python.

Features

  • Windows Live OAuth authentication.
  • Spartan Token generation.
  • HaloWaypoint API endpoint mapping.

Usage

See example.py for further usages.

Authentication

import pyhalo.authentication

auth = pyhalo.authentication.HaloFour('[email protected]', 'Passw0rd!')

auth_token = auth.get_new_token()

print(auth_token.__dict__)
# {
#    'gamertag': 'Furiousn00b', 
#    'analytics_token': 'C97F9C24...', 
#    'spartan_token': 'v2=ede2N...', 
#    'live_username': '[email protected]',
#    'live_password': 'Passw0rd!'
# }

API Requests

import pyhalo.api

api = pyhalo.api.HaloFour(auth_token)

api_version = api.get_api_version()

print(api_version)
# {
#    'Current': '1.0.14056.1'
# }

Requirements

Requests

pip install -r requirements.txt

Author

Damon Pollard (@DamonLPollard)

About

A simple wrapper for HaloWaypoint's Halo 4 API written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages