JavaScript is required to use Bungie.net

Forums

originally posted in:BungieNetPlatform
10/6/2015 12:45:34 PM
2
Regarding the first sample. This is the sample url var url = "https://www.bungie.net/platform/destiny/vanguard/grimoire/2/4611686018437163478/"; This is the official API Documentation entry: /Vanguard/Grimoire/{membershipType}/{membershipId}/ GET Gets someone else's Grimoire. I don't really know what membershipType is. The possible values are not documented. Nor do I know my membershipID. If I look at this URL which is bungie.net forum profile link, https://www.bungie.net/en/Profile/254/5545368 I see this number below my toon name: 5545368. That number is shorter than the membershipID used in the sample. However, if I notice the URL on that page it is https://www.bungie.net/en/Profile/254/5545368. Now that number is longer if you include the 254 before the slash. However it is incorrect. If I navigate the browser to my grimoire page, I see https://www.bungie.net/en/Grimoire/2/4611686018430120182. Viola, the number is longer and the URL looks similar to the sample url. If I use var url = "https://www.bungie.net/platform/destiny/vanguard/grimoire/2/4611686018430120182/"; it works! So rather than working by experimentation, is there a site which documents these numbers and ranges?
English

Posting in language:

 

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

  • If your app requires the user to log in, you can use this endpoint https://www.bungie.net/platform/User/GetMembershipIds/ to get the membership id's related to the account. Is 2 for psn and I think 1 for Xbox, don't remember exactly.

    Posting in language:

     

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

  • Join the BungieNetPlatform group and read the questions and answers there.

    Posting in language:

     

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

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