JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

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

Request Join
originally posted in:BungieNetPlatform
11/3/2014 5:00:30 PM
1

Quick question about getting a list of group members.

So I am trying to construct a array of members of a group, I am using the url http://www.bungie.net/platform/Group/{groupid}/Members/ This is returning: {"ErrorCode":46,"ThrottleSeconds":0,"ErrorStatus":"InvalidPageNumber","Message":"You gave an invalid page range for a paged search. This most frequently occurs because the query's pages are 1-based.","MessageData":{}} How is the query constructed, or is there a better url to retrieve a list of members, not followers, of a group? Thank you in advance!

Posting in language:

 

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

  • First, I believe that platform call is deprecated. You'll want to use MembersV3 instead of Members. Second, there are a few parameters that can be set for this platform call via the query string, one of which is the page number. The request will fail if you don't include the page number as a parameter. For example, to get the first page of members in this group, you could create a URL like this: [url]http://www.bungie.net/Platform/Group/39966/MembersV3/?currentPage=1&itemsPerPage=10[/url] This URL would get you the first page of results where a page is set to 10 items (group members). You don't have to specify a page size, but in this example it demonstrates the concept of having multiple query string parameters.

    Posting in language:

     

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

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