Could you post an example of a request using the headers after the authentication? I'm sending a request using the following code after the code you posted above and still getting an authentication error: stuff = requests.get("http://www.bungie.net/Platform/Destiny/2/MyAccount/Character/2305843009217406736/Advisors/", headers=session.headers) Note: I moved the session initialization outside of your login method to make the headers accessible outside the method. Should I just make my requests inside of your method as well? Thanks in advance if you get a chance to answer!
Thanks so much for this! Been messing with this to no avail, you've saved me hours of frustration.