originally posted in:BungieNetPlatform
View Entire Topic
These are the steps I am currently using, and I want to make sure they're correct before I release my app. Specifically, I want to make sure these steps enable Playstation users to log in, as all of my testers are Xbox players.
1) Using the user's login cookies, a query is sent to http://www.bungie.net/Platform/User/GetBungieNetUser/
2) [b]The value associated with "gamerTag" in the response is stored as the membership name.[/b] (this is the part I'm most worried about not being correct for PSN players)
3) The [b]membership type[/b] ("1" for Xbox, "2" for PSN) is obtained via other methods.
4) The membership name and membership type are used to query the following URL:
http://www.bungie.net/Platform/Destiny/SearchDestinyPlayer/[b]{membershipType}[/b]/[b]{membershipName}[/b]/
5) The [b]membershipID[/b] is obtained from the value associated with "membershipId" in the response.
This works for all my testers, but like previously mentioned they're all Xbox players and none of them have spaces in their gamertags (I don't know if that would screw up this logic at all).
If this is correct, I'll hopefully release my app by tomorrow! :D
English
-
For PSN the property name is psnId. Could I also just add that it might be a good idea to add a warning for users who have their gamertag or id hidden and explain how you're using it or possibly associating it with their bungie.net account.