Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username does not work! #1203

Closed
rjarman opened this issue Jul 23, 2021 · 2 comments
Closed

Username does not work! #1203

rjarman opened this issue Jul 23, 2021 · 2 comments

Comments

@rjarman
Copy link

rjarman commented Jul 23, 2021

If I replace the URL with API based URL like the following:
https://wakatime.com/api/v1/users/current/stats/last_year?api_key=****&is_including_today=true
then Wakatime gives my stats.
But there is no option to include api_key as param on the following line of code:

}/api/v1/users/${username}/stats/${range || ''}?is_including_today=true`,

@florianbussmann
Copy link
Contributor

https://wakatime.com/api/v1/users/rjarman/stats/?is_including_today=true works for your profile
If you want last_year to work you can change Display code time publicly in your profile settings to Last Year.

If you still want to use your api key for some reason I would advice to resolve the parameter through an environment variable

@rjarman
Copy link
Author

rjarman commented Jul 23, 2021

Thank you, it's solved my issue!

@rjarman rjarman closed this as completed Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants