JavaScript is required to use Bungie.net

Help

Help us help you.
originally posted in:BungieNetPlatform
Edited by k20stitch: 5/13/2015 4:17:04 PM
4

completionReason

Hi All, I'm pretty new to this API business here but i've been dabbling a little with some of the queries you can run without an API key. I'm using the activityhistory endpoint http://www.bungie.net/Platform/Destiny/Stats/ActivityHistory/2/4611686018433114566/2305843009222910343/?page=0&count=5&definitions=true&mode=Nightfall If you look at row 2 and 3 ( 1 and 2 for us programmers counting from 0 ) You'll see the omnigul nightfall listed twice for the same date (4/28). Both say complete, but obviously row 3 (or 2 if counting from zero) was a death which sent me back to orbit. The only difference i see in data values is the "completionReason". one says "0" which i think is the one that was actually completed and the other says "2" Can someone please elaborate? Edit:: So far it looks like a completed nightfall must have a completed of 1 and a completionReason of 0. Edit:: So i searched through the manifest for any json relating to %completion% and found a hit in the world_sql_content.destinyHistoricalStatsDefinition table { "statId":"completionReason", "group":1, "periodTypes":[4], "modes":[5,10,13,11,8,12,9,7,6,4,2,3,17,16,14,15,18,19,20,22,21], "category":0, "statName":"Completion Reason", "unitType":1, "unitLabel":"", "weight":1 } Unfortunately, this doesn't help me figure out what the different values mean. Interesting to note that both "0" and "255" are not in the modes array which are both completionReasons i've seen in the past. Maybe i'm barking up the wrong tree or trying to reinvent the wheel but I just want to know if a nightfall or a weekly was completed in the current [destiny] week. What i'm doing now is using the activityHistory end point with a nightfall filter. foreach (activityrow) { if (activity period < last tuesday) { break; } if (complete = 1 && completionReason = 0) { Nightfall successfully completed break; } else { Nightfall failure, continue to next row } }
English
#Help

Posting in language:

 

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

View Entire Topic
You are not allowed to view this content.
;
preload icon
preload icon
preload icon