toggl / toggl_api_docs

Documentation for the Toggl API
1.39k stars 235 forks source link

API to toggle timer, like a button that is both play and pause #388

Closed tylercollier closed 2 years ago

tylercollier commented 4 years ago

Seems ironic but I don't think it's currently possible to toggle the timer. I'd really like to have a single button on my keyboard to toggle the timer. Right now I have to have two, one that can call the stop API and another for the start API. I suppose I could use GET https://api.track.toggl.com/api/v8/time_entries/current to check and then either start or stop based on the response, but why not have a toggle primitive that requires only one API call?

JoeyStrandnes commented 4 years ago

Hi! I was also looking for something similar. Just having one button to start and stop a timer would be really convenient.

I created a implementation for the Arduino embedded platform and have a physical button on my desk to start and stop timers independently of my PC, I use it daily too keep track of my out of office work hours. It still work in progress but works great.

Solved it by utilizing the "get running time entry" to figure out if a timer was running, feels a bit excessive. I would also like to see this implemented!!

ezgif com-gif-maker (3)

joeriharleman commented 2 years ago

Hello @tylercollier!

Thank you for submitting your issue. Unfortunately this repository is largely unmaintained, which means issues remain unseen and do not get dealt with in a respectable manner. We're sorry for not getting back to you sooner.

This issue has been around for a long time so we will close it for now, but please let our excellent 24/5 support staff know you if you have any unresolved issues with our platform, documentation or APIs. They're also really good at noting down feature requests for our development teams. Please find them on our support page by clicking the little icon in the bottom right corner of the screen.

Kind regards, Joeri from Toggl