Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

Respect custom API URL for all endpoints #260

Open
muety opened this issue Apr 1, 2021 · 2 comments
Open

Respect custom API URL for all endpoints #260

muety opened this issue Apr 1, 2021 · 2 comments

Comments

@muety
Copy link

muety commented Apr 1, 2021

muety/wakapi#153 brought up an issue related to the fact that many endpoints inside the CLI are hard-coded. It would be nice to be able to configure the base URL via wakatime.cfg instead, just like it's already possible for the heartbeats endpoint.

For instance, here: https://github.com/wakatime/wakatime/blob/e8deb156f1c2d26e5cf874da97f7b4354b3f5d20/wakatime/api.py#L173

@alanhamlett
Copy link
Member

alanhamlett commented Apr 6, 2021

We'll do this in our new Go language version of wakatime-cli being released soon.

To do this, we need to change api_url to be the base api url instead of the heartbeats endpoint.

@muety
Copy link
Author

muety commented May 1, 2021

Would you accept a PR for this, even though the new CLI is on its way? If so, I'll have a look.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants