originally posted in:BungieNetPlatform
View Entire Topic
A pretty basic question, but how do you authenticate? I see both the C# and the Node.js API have some auth mechanisms and some ways to circumvent the CSRF protection. But I don't know what it is you're doing and how you're doing it, and I suck at C. I'm a Python guy and want to get some data to analyse, as well as create a Python wrapper. Any help appreciated!
English
-
Edited by Jarvis T. Smokin: 11/17/2014 12:28:22 PMI'm struggling a bit with this as well. If I go to the bungie.net site and log in (in my browser), then open a new tab in the same browser and go to this URL, then it returns a bunch of data: http://www.bungie.net/Platform/Destiny/TigerPsn/Account/<my account id>/Character/<my character id>/Inventory/?lc=en&fmt=true&lcin=true&definitions=true If I go to this URL to get the non-public view of my inventory, I get a message with an authorisation error: http://www.bungie.net/Platform/Destiny/2/MyAccount/Character/<my character id>/Vendor/892630493/?lc=en&fmt=true&lcin=true&definitions=true error returned: {"ErrorCode":99,"ThrottleSeconds":0,"ErrorStatus":"WebAuthRequired","Message":"Please sign-in to continue.","MessageData":{}} What I don't get is if I'm already logged in in the browser and just opening a new tab, why is it saying I'm not signed in, do I need to specifically send that request with something set in the request headers?