Skip to content

Instantly share code, notes, and snippets.

View almic's full-sized avatar
:shipit:
Just doing programmer things

Mick A. almic

:shipit:
Just doing programmer things
  • Denver, CO
View GitHub Profile
@almic
almic / Halo MCC API (Node).js
Last active February 2, 2022 07:21
The Node.js way for getting into the Halo MCC API.
const request = require('then-request')
// This is your microsoft live account information
const LOGIN = process.env.LOGIN // typically an email address
const PASSWD = process.env.PASSWD // typically your xbox live password
// This is the "api" we'll be calling once we login
const endpoint = 'https://www.halowaypoint.com/en-us/games/halo-the-master-chief-collection/xbox-one/' +
'game-history?gamertags=Furiousn00b&gameVariant=all&view=DataOnly'
__author__ = 'Damon Pollard (@DamonLPollard)'
import re
import random
import json
import requests
WLID_USERNAME = "user@example.com"
WLID_PASSWORD = "password"