JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
6/19/2015 12:36:17 AM
1
2
KFZ
KFZ

Determining Clan Membership

I'm just digging into the API now, but can't seem to find the answer I'm looking for. I've pulled a list of members of a particular group using /group/{groupId}/membersV3, now I'm trying to determine whether they have set the provided groupId as their clan. Is there no other way to find this information other than a call back out per user? Any help or workarounds that others have found would be helpful.

Posting in language:

 

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

  • Unfortunately, the only good way to get clan membership info for a group is actually through membersV3, but you have to pass a ?platformType=X querystring parameter in the URL, where X = one of the following: 0 = None, just getting group memberships 1 = XBox Clan Memberships 2 = PSN Clan Memberships (note that these are frequently used enum values - in our code, we have an enum type for these that we use in a lot of places. I suggest doing the same!) That does unfortunately mean that if you want all of this information on a single screen (for example), you have to call the service three times. (Yuck, I know. :( ) Note that as you're building your UI, theoretically you could have clan members that are not part of your group. This is not something that we allow right now, but you should account for that should it change in the future!

    Posting in language:

     

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

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