JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

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

Request Join
originally posted in:BungieNetPlatform
5/29/2015 6:43:51 PM
1

How do I get lastPlayedDate for any member?

Hi, i want to build a simple overview with our group/clan members and their lastPlayedDate so that we can identify the inactive group members. Therefor i get the memberlist with memberIds from endpoint [quote]/Platform/Group/{GROUP_ID}/Members/[/quote] I found out that the lastPlayedDate ist field in in the characters object. So i need to get the character data for the members destiny accounts. But the Endpoint [quote]/Platform/Destiny/{MEM_TYPE}/Account/{MEM_ID}/[/quote] gives me an 'DestinyAccountAcquisitionFailure' ErrorStatus, and the Endpoint [quote]/Platform/User/GetBungieAccount/{MEM_ID}/{MEM_TYPE}/[/quote] gives me the data only for my own account. I'm executing the script from my own workstation in the same browser i'm logged in at the Bungie webpage. If i try this endpoint with another member id then my own i get an Errorcode 217: 'UserCannotResolveCentralAccount' Errorstatus. I guess that i'm not allowed to check the whole user account from another member? Any ides or hint with what endpoint i can get the characters data from any account? Thanks for your help.

Posting in language:

 

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

  • Some specific examples of calls you've tried to make would help diagnose your problem, but I am guessing that you may be using the wrong membership id and type for the Destiny account endpoint. For example, this is what the endpoint would look like if you wanted to get my Destiny account: [url]http://www.bungie.net/Platform/Destiny/2/Account/4611686018428388123/[/url] Note how the membership type is 2 and the membership id is 4611686018428388123, they represent my Destiny account specifically. I suspect you are trying to make a similar call using Bungie.net membership information, like so: [url]http://www.bungie.net/Platform/Destiny/254/Account/4006481/[/url] These values represent my Bungie.net account (which is linked to my Destiny account), but they are not valid values for a Destiny account so the endpoint returns an error. You need to make sure you are supplying the endpoint with the correct kind of ids. Also, you probably want to use MembersV3 instead of just Members for getting Group member lists, the older Member endpoints are deprecated.

    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