0.0.2 • Published 2 years ago

@decouplr/worker-toggl v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

worker-toggl

A Cloudflare Webworker that starts a new time entry with the given parameters while also stopping all currently active time entries.

Usage

  1. Publish the worker to Cloudflare with yarn publish
  2. Add the TOGGL_API_KEY and WORKSPACE_ID secrets, e.g., wrangler secret put TOGGL_API_KEY [Your Toggl API Key] or using the Cloudflare dashboard
  3. Call your worker's URL with a POST request and a JSON body containing the parameters defined below

Parameters

keytypevalue
descriptionstringThe description of the time entry that will be created (optional)
projectIdnumberThe id of the project to which the time entry should be attached (optional)