originally posted in:BungieNetPlatform
I cannot find out how to get this from the API. Is it always 254?
[quote]
var ONPAGE_MEMBERSHIP_INFO = $.extend({}, ONPAGE_MEMBERSHIP_INFO, {
destinyMembershipId: "4611686018429564083",
destinyMembershipType: "1",
membershipType: "254",
bungieNetMembershipId: "107313",
characterId: "2305843009214947218"
});
[/quote]
-
A user may have three memberships: Bungie.net (type 254), Destiny on PSN (type 1), Destiny on Xbox (type 2). If you see a variable called 'destinyMembershipType' is means either a value of 1 or 2 is expected.
-
Have a look at the globals: https://github.com/SargoDarya/bungie-platform/blob/develop/js/platform/globals.js#L839