Thom-Roberts / ts-clan

0 stars 0 forks source link

Consider gettings total # of raids, strikes, etc. #20

Open Thom-Roberts opened 5 years ago

Thom-Roberts commented 5 years ago

May be another interesting stat.

Thom-Roberts commented 5 years ago

To get specific values for raids, use this endpoint https://bungie-net.github.io/multi/operation_get_Destiny2-GetActivityHistory.html#operation_get_Destiny2-GetActivityHistory with mode of 4. Response looks like this:

Screen Shot 2019-08-22 at 12 24 30 PM

and the the reference id will tell you which raid it is

Thom-Roberts commented 5 years ago

By default, the request returns only a certain amount of data. You should probably set a count property, and see if the return count is less than it (then stop sending requests). If it is that long, then increment the page number and send another request, and so on. Verify that the response has at least one entry though before you go in.

Thom-Roberts commented 5 years ago

I can set the 'count' property to be really high (like 50) to avoid making a lot of calls

Thom-Roberts commented 5 years ago

Holy crap, by setting the value of character id to 0: http://www.bungie.net/Platform/Destiny2/2/Account/4611686018448531660/Character/0/Stats?modes=3,4,64 returns all results for that account. WTF?