@decouplr/worker-toggl
v0.0.2
Published
A Cloudflare Webworker that starts a new time entry with the given parameters while also stopping all currently active time entries.
Downloads
3
Readme
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_KEY
andWORKSPACE_ID
secrets, e.g.,wrangler secret put TOGGL_API_KEY [Your Toggl API Key]
or using the Cloudflare dashboard - Call your worker's URL with a
POST
request 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) |