{"id":45187775,"url":"https://github.com/cycleplatform/api-client-go","last_synced_at":"2026-02-20T11:04:42.998Z","repository":{"id":166205888,"uuid":"636872292","full_name":"cycleplatform/api-client-go","owner":"cycleplatform","description":"A Go API client for the Cycle API ","archived":false,"fork":false,"pushed_at":"2025-11-29T17:01:15.000Z","size":6783,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-01T19:52:45.318Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cycleplatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-05T21:12:29.000Z","updated_at":"2025-11-29T16:59:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e59946a4-8dca-47c9-8912-435bc318a046","html_url":"https://github.com/cycleplatform/api-client-go","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/cycleplatform/api-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycleplatform%2Fapi-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycleplatform%2Fapi-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycleplatform%2Fapi-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycleplatform%2Fapi-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cycleplatform","download_url":"https://codeload.github.com/cycleplatform/api-client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycleplatform%2Fapi-client-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29648487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-02-20T11:04:42.174Z","updated_at":"2026-02-20T11:04:42.994Z","avatar_url":"https://github.com/cycleplatform.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cycle API Go Client\n\n\u003ca href=\"https://cycle.io\"\u003e\n\u003cpicture class=\"red\"\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://cycle.io/global/resources/images/logos/cycle-logo-white.svg\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://static.cycle.io/icons/logo/cycle-logo-fullcolor.svg\"\u003e\n  \u003cimg alt=\"cycle\" width=\"300px\" src=\"https://static.cycle.io/icons/logo/cycle-logo-fullcolor.svg\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\n_This is an auto-generated API client based on the [OpenAPI Spec for Cycle](https://github.com/cycleplatform/api-spec). Please do not open any PRs for the generated code in `generated.go`. If you have any questions on what changes are made in the latest version, please refer to the spec above._\n\n## Usage\n\n`go get github.com/cycleplatform/api-client-go`\n\nCreate a client\n\n```go\npackage main\n\nimport (\n\t\"log\" \n\t\"os\"\n\t\"context\"\n\t\"net/http\"\n\t\"fmt\"\n    \"github.com/cycleplatform/api-client-go\"\n)\n\nfunc main() {\n    apiKey := os.Getenv(\"CYCLE_API_KEY\")\n\tif apiKey == \"\" {\n\t\tlog.Fatal(\"missing env var CYCLE_API_KEY\")\n\t}\n\n\thubId := os.Getenv(\"CYCLE_HUB_ID\")\n\tif hubId == \"\" {\n\t\tlog.Fatal(\"missing env var CYCLE_HUB_ID\")\n\t}\n\n\tc, err := cycle.NewAuthenticatedClient(cycle.ClientConfig{\n\t\tAPIKey: apiKey,\n\t\tHubID:  hubId,\n\t})\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n    // Get list of environments\n    resp, err := c.GetEnvironmentsWithResponse(context.TODO(), \u0026cycle.GetEnvironmentsParams{})\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    if resp.StatusCode() != http.StatusOK {\n        log.Fatalf(\"Expected HTTP 200 but received %d %s\", resp.StatusCode(), *resp.JSONDefault.Error.Title)\n    }\n\n    for _, v := range resp.JSON200.Data {\n        fmt.Printf(\"ID: %s - Name: %s\\n\", v.Id, v.Name)\n    }\n}\n```\n\n## Development\n\n### Updating the API spec\n\nUpdate the API spec to the latest version:\n\n`git submodule update --recursive --remote`\n\nUsing `npm`, run `(cd api-spec; npm run build:platform \u0026\u0026 npm run downconvert:platform)`\n\n### Generating the client\n\n`go generate`\n\nSee [ogen](https://ogen.dev/docs/intro/) for usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycleplatform%2Fapi-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcycleplatform%2Fapi-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycleplatform%2Fapi-client-go/lists"}