JavaScript is required to use Bungie.net

Forums

originally posted in:BungieNetPlatform
5/17/2015 5:37:57 PM
2

Having some troubles getting member/character IDs (and my app is released!!)

First off, [b][url=http://www.reddit.com/r/DestinyTheGame/comments/367r88/android_app_introducing_vendor_notifier_for/]I finished the release version of my app[/url][/b]!! Thank you all for putting up with all my questions, I couldn't have done it without y'alls help! :D Now that it's out in the open, though, a few people are having trouble logging in and I've pinpointed the error to when the app grabs the membership ID and character ID. These are the steps I'm using to get them; does anything jump out as being obviously wrong? [quote]1) Query http://www.bungie.net/Platform/User/GetBungieNetUser/ using the user's login cookies. 2) Get the user's gamer tag in one of two ways: --1--> If the player is Playstation, get [b]Response.psnId[/b] --2--> If the player is Xbox, get [b]Response.gamerTag[/b] 3) Query http://www.bungie.net/Platform/Destiny/SearchDestinyPlayer/{MEM_TYPE}/{GAMER_TAG}/ and get the membership ID by: -----> MEM_ID = [b]Response[0].membershipId[/b] 4) Query http://www.bungie.net/Platform/Destiny/{MEM_TYPE}/Account/{MEM_ID}/ and get the character ID by: -----> CHAR_ID = [b]Response.data.characters[0].characterBase.characterId[/b][/quote] (If there is a subscript like characters[0], that means I'm dealing with the first element in the characters JSONArray) Many users can log in following these steps, but a few are having difficulty at either step 3 or 4 (don't know which). Would these steps not work if the user has spaces in their gamertag, maybe? Any help is greatly appreciated :D
English

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
You are not allowed to view this content.
;
preload icon
preload icon
preload icon