Hi!
I’m creating a simple shell script in order to start and stop a timer (using a Flic smart button).
Starting a new timer is working great but when I’m supposed to stop the API seems to require that one submits the current time entry id.
curl -X PATCH https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/time_entries/{time_entry_id}/stop \
-H "Content-Type: application/json" \
-u <email>:<password>
Is there any workaround? Or how could I populate the id dynamically in my script without looking it up manually every time?
Kind regards,
// Henrik