{"id":31922034,"url":"https://github.com/dev-shimada/toggl-go","last_synced_at":"2025-10-13T22:56:31.898Z","repository":{"id":267141391,"uuid":"900365990","full_name":"dev-shimada/toggl-go","owner":"dev-shimada","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-23T09:11:46.000Z","size":32,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T10:20:05.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-shimada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-12-08T15:42:17.000Z","updated_at":"2025-02-23T09:10:58.000Z","dependencies_parsed_at":"2024-12-08T17:17:43.994Z","dependency_job_id":"4805b376-4e42-415d-b147-50e5b8caaa18","html_url":"https://github.com/dev-shimada/toggl-go","commit_stats":null,"previous_names":["dev-shimada/toggl-go"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dev-shimada/toggl-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Ftoggl-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Ftoggl-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Ftoggl-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Ftoggl-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-shimada","download_url":"https://codeload.github.com/dev-shimada/toggl-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Ftoggl-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017081,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-13T22:56:23.155Z","updated_at":"2025-10-13T22:56:31.893Z","avatar_url":"https://github.com/dev-shimada.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/dev-shimada/toggl-go)](https://goreportcard.com/report/github.com/dev-shimada/toggl-go)\n[![Coverage Status](https://coveralls.io/repos/github/dev-shimada/toggl-go/badge.svg?branch=main)](https://coveralls.io/github/dev-shimada/toggl-go?branch=main)\n[![CI](https://github.com/dev-shimada/toggl-go/actions/workflows/CI.yaml/badge.svg)](https://github.com/dev-shimada/toggl-go/actions/workflows/CI.yaml)\n[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/dev-shimada/toggl-go/blob/master/LICENSE)\n\n# Toggl Time Entries Go Client\n\nThis project provides a Go client for interacting with the [Toggl Track API](https://developers.track.toggl.com/docs/). It allows developers to integrate Toggl time tracking functionalities into their Go applications.\n\n## Features\n\n- Retrieve time entries with various query parameters\n- Fetch the current running time entry\n- Get a specific time entry by ID\n- Create new time entries\n- Bulk edit time entries\n- Update existing time entries\n- Delete time entries\n- Stop a running time entry\n\n## Installation\n\nUse `go get` to install the package:\n```plaintext\ngo get github.com/dev-shimada/toggl-go\n```\n\n## Usage\n\nHere is an example of how to use the package:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/dev-shimada/toggl-go/timeentries\"\n\t\"github.com/dev-shimada/toggl-go/toggl\"\n)\n\nfunc main() {\n\t// Get your API token from https://toggl.com/app/profile\n\ttoken := os.Getenv(\"TOKEN\")\n\tclient := toggl.NewClient(token)\n\n\t// Get time entries for the last 7 days\n\tnow := time.Now()\n\tstart := now.Add(-24 * 7 * time.Hour).Format(time.RFC3339)\n\tend := now.Format(time.RFC3339)\n\tresult, err := client.TimeEntriesClient.GetTimeEntries(\n\t\ttimeentries.GetTimeEntriesInput{\n\t\t\tQuery: timeentries.GetTimeEntriesQuery{\n\t\t\t\tStartDate: \u0026start,\n\t\t\t\tEndDate:   \u0026end,\n\t\t\t},\n\t\t},\n\t)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\tfor _, v := range result {\n\t\tfmt.Printf(\n\t\t\t\"ID: %d, Description: %s, Start: %s, Stop: %s, Duration: %d\\n\",\n\t\t\t*v.Id, *v.Description, *v.Start, *v.Stop, *v.Duration,\n\t\t)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-shimada%2Ftoggl-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-shimada%2Ftoggl-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-shimada%2Ftoggl-go/lists"}