0.0.2 • Published 3 years ago
@decouplr/worker-toggl v0.0.2
worker-toggl
A Cloudflare Webworker that starts a new time entry with the given parameters while also stopping all currently active time entries.
Usage
- Publish the worker to Cloudflare with
yarn publish - Add the
TOGGL_API_KEYandWORKSPACE_IDsecrets, e.g.,wrangler secret put TOGGL_API_KEY [Your Toggl API Key]or using the Cloudflare dashboard - Call your worker's URL with a
POSTrequest and a JSON body containing the parameters defined below
Parameters
| key | type | value |
|---|---|---|
| description | string | The description of the time entry that will be created (optional) |
| projectId | number | The id of the project to which the time entry should be attached (optional) |