Closed AmosChenYQ closed 1 year ago
Check that the time range returned is the same as the range you're using on your dashboard. By default, those api endpoints don't return data for Today. For ex: last_7_days
is equal to dashboard range Last 7 Days from Yesterday.
Thanks for your rely, after two days, now I can get the data I need
I can get my coding stats of last 7 days in wakatime website dashboard, but when I tried to use github actions by accessing https://wakatime.com/api/v1/users/amoschenyq/stats/last_7_days?api_key=My_WAKA_Secret_API_Key it returned empty stats like this:
It seemed that this API can not access my stats correctly. And I tired some other APIs like this https://wakatime.com/developers#status_bar with this https://wakatime.com/api/v1/users/amoschenyq/status_bar/today?api_key=My_WAKA_Secret_API_Key it can return right result
Is it that my use of this API is wrong or something I forget to set in somewhere?(BTW, I have set my Display code time publicly and Display languages, editors, os, categories publicly)