toggl / toggl_api_docs

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

[Feature request] Add epoch start time to "Get running time entry" #390

Closed JoeyStrandnes closed 2 years ago

JoeyStrandnes commented 4 years ago

This is the response from "Get running time entry"

{
    "data":{
        "id":436694100,
        "wid":777,
        "pid":193791,
        "billable":false,
        "start":"2014-01-30T09:08:04+00:00",
        "duration":-1391072884,
        "description":"Running time entry",
        "at":"2014-01-30T09:08:12+00:00"
    }
}

The timer duration is in the epoch time format and the start time is in the ISO 8601 time format.

I'm using your API for embedded systems and don't natively have access to "real time", I'm not able to easily calculate the timer duration since the two time format differ. To solve this I first have to request the current time from worldtimeapi.org then request your "Get running time entry" and then calculate the difference resulting in the timer duration in seconds.

This works fine but results in much longer "processing" time and unnecessary API calls to other services for a simple function.

Could you add a "startepoch"entry to the returned JSON document that just returns the start time in the epoch time format. Exactly like the regular "start" but in epoch time.

Thanks

//Joey

joeriharleman commented 2 years ago

Hello @JoeyStrandnes!

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