{"id":19038592,"url":"https://github.com/garyhtou/toggl-track","last_synced_at":"2025-04-23T19:46:31.202Z","repository":{"id":49869416,"uuid":"503146142","full_name":"garyhtou/toggl-track","owner":"garyhtou","description":"A TypeScript client for the Toogl Track API (v9)","archived":false,"fork":false,"pushed_at":"2024-05-08T14:14:13.000Z","size":100,"stargazers_count":26,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T04:54:31.830Z","etag":null,"topics":["javascript","time-tracker","toggl","toggl-api","toggl-track","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/toggl-track","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garyhtou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-13T23:35:18.000Z","updated_at":"2024-10-14T21:08:00.000Z","dependencies_parsed_at":"2025-04-17T16:00:05.254Z","dependency_job_id":"0c7c56bb-dc37-454f-906b-474632053534","html_url":"https://github.com/garyhtou/toggl-track","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyhtou%2Ftoggl-track","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyhtou%2Ftoggl-track/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyhtou%2Ftoggl-track/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyhtou%2Ftoggl-track/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garyhtou","download_url":"https://codeload.github.com/garyhtou/toggl-track/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250502742,"owners_count":21441297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","time-tracker","toggl","toggl-api","toggl-track","typescript"],"created_at":"2024-11-08T22:04:07.733Z","updated_at":"2025-04-23T19:46:31.163Z","avatar_url":"https://github.com/garyhtou.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toggl Track Client (v9)\n\nA TypeScript client for the Toogl Track API (v9). At the moment, only the following API References are supported:\n\n- [`Me`](https://developers.track.toggl.com/docs/api/me)\n- [`Time entry`](https://developers.track.toggl.com/docs/api/time_entry)\n- [`Invitations`](https://developers.track.toggl.com/docs/api/invitations)\n- [`Projects`](https://developers.track.toggl.com/docs/api/projects)\n- [`Tags`](https://developers.track.toggl.com/docs/api/tags)\n- More to come!\n\nThis is a work in progress! Expect breaking changes until version `1.0.0`.\n\n### Install\n\n```bash\nnpm install toggl-track\n```\n\n### Usage\n\n```typescript\nimport { Toggl } from 'toggl-track';\n\nconst toggl = new Toggl({\n  auth: {\n    token: process.env.TOGGL_TRACK_API_TOKEN,\n  },\n});\n\nconst entries = await toggl.timeEntry.list();\nconsole.log(entries);\n```\n###### Console\n```json\n[\n  {\n    \"id\": 1555410329,\n    \"workspace_id\": 2949399,\n    \"project_id\": 265931152,\n    \"task_id\": null,\n    \"billable\": false,\n    \"start\": \"2022-07-01T23:53:41+00:00\",\n    \"stop\": \"2022-07-01T23:58:33Z\",\n    \"duration\": 292,\n    \"description\": \"bug fixes for toggl-track typescript package\",\n    \"tags\": null,\n    \"tag_ids\": null,\n    \"duronly\": false,\n    \"at\": \"2022-07-05T03:32:23+00:00\",\n    \"server_deleted_at\": null,\n    \"user_id\": 4232226,\n    \"uid\": 4232226,\n    \"wid\": 2949399,\n    \"pid\": 265931152\n  },\n  {\n    \"id\": 1555410329,\n    \"workspace_id\": 2949399,\n    \"project_id\": 265931152,\n    \"task_id\": null,\n    \"billable\": false,\n    \"start\": \"2022-07-01T17:39:19+00:00\",\n    \"stop\": \"2022-07-01T18:49:46Z\",\n    \"duration\": 4227,\n    \"description\": \"implmentation tests\",\n    \"tags\": null,\n    \"tag_ids\": null,\n    \"duronly\": false,\n    \"at\": \"2022-07-05T03:32:20+00:00\",\n    \"server_deleted_at\": null,\n    \"user_id\": 4232226,\n    \"uid\": 6422206,\n    \"wid\": 2949399,\n    \"pid\": 265931152\n  },\n]\n```\n\nPlease see the official [Toggl Track API documentation](https://developers.track.toggl.com/docs/) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryhtou%2Ftoggl-track","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaryhtou%2Ftoggl-track","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryhtou%2Ftoggl-track/lists"}