mikechambers / dcli

Command line utilities for Destiny 2
https://github.com/mikechambers/dcli
MIT License
86 stars 13 forks source link

dclics day flag doesnt return stats from games from same day #4

Closed mikechambers closed 3 years ago

mikechambers commented 3 years ago

dclics --member-id $MEMBER_ID --platform xbox --mode control --period day --character-id $CHARACTER_ID --verbose

searching for last day, doesnt return results from the same day. Need to look into this a bit more.

It might be that bungie only updates the aggregate stats api we use once a day, in which case, the day flag might not be that useful (maybe be more accurate to call it yesterday).

Needs more research.

Opt {
    member_id: "4611686018429783292",
    platform: Xbox,
    period: Day,
    mode: Control,
    output: Default,
    character_id: Some(
        "2305843009264966985",
    ),
    verbose: true,
}
https://www.bungie.net/Platform/Destiny2/1/Account/4611686018429783292/Character/2305843009264966985/Stats/?modes=10&periodType=1&groups=1,2,3&daystart=2020%2D12%2D03T07%3A20%3A17%2E516173%2B00%3A00&dayend=2020%2D12%2D04T07%3A20%3A17%2E516217%2B00%3A00
---------Begin API response---------
{"Response":{"control":{}},"ErrorCode":1,"ThrottleSeconds":0,"ErrorStatus":"Success","Message":"Ok","MessageData":{}}
---------End API response---------
mikechambers commented 3 years ago

This is due to how the API works. dclics has been deprecated, and replaced with dcliah, which addresses this issue.