originally posted in:BungieNetPlatform
I have an editText for the username and a switcher to select the platform. XBL being 1 and PSN being 2. I can easily make the URL but in chrome it asks for an API KEY (which I have). But I do not know what to do with this key. Where do I put it in the URL etc... I want a tutorial to explain how to make quick interactions with the Bungie API to get specific experience levels for factions.
I've found in testing my API calls I don't have to specify a 1 or 2 for the platform, I can pass the 'PSN/Gamertag' name and 'All' and I'm returned the correct info. In order to actually interact with the API, you need to pass 'X-API-Key' = to the value of your API key.
Send me a message and i can give you access to my repo, in there you will find everything you need to start coding, including a WebView that handles the login for you. I'm Assuming this is Android, right? if not, i can still give you access but don't know how much it would help.
For example I would setup methods so I could easily call them: String mId = getMembershipIdByUsername(username, 1);