originally posted in:BungieNetPlatform
Let me just say right up front that this is a filthy hack, but it works until someone at Bungie or MS slightly changes something. I wanted to auth using Python with as few modules and as little code as possible, and without having to execute JS. So instead of executing JS, I used RegEx to pull what I needed out of the script. It's not packaged in any way, no classes, no functions, just a minimal script that ends by pulling your vault to show that it works. Hopefully this is useful to someone trying to get started with the API.