{"id":18384040,"url":"https://github.com/speakeasy-sdks/hex-go-sdk","last_synced_at":"2025-08-22T11:38:35.036Z","repository":{"id":65913893,"uuid":"602307323","full_name":"speakeasy-sdks/hex-go-sdk","owner":"speakeasy-sdks","description":"Hex Go SDK","archived":false,"fork":false,"pushed_at":"2024-04-02T21:12:47.000Z","size":48,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-16T00:13:10.449Z","etag":null,"topics":["analytics","api","data","go","sdk"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/speakeasy-sdks.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":"2023-02-15T23:39:56.000Z","updated_at":"2023-02-16T00:11:56.000Z","dependencies_parsed_at":"2024-04-02T21:49:22.579Z","dependency_job_id":"cc967070-702e-4ac6-9b0f-ae7e3c09cac9","html_url":"https://github.com/speakeasy-sdks/hex-go-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fhex-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fhex-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fhex-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fhex-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-sdks","download_url":"https://codeload.github.com/speakeasy-sdks/hex-go-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248494355,"owners_count":21113419,"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":["analytics","api","data","go","sdk"],"created_at":"2024-11-06T01:13:24.710Z","updated_at":"2025-04-11T23:28:31.221Z","avatar_url":"https://github.com/speakeasy-sdks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hex Go SDK\n\n\u003cdiv align=\"center\"\u003e\n   \u003cp\u003eProgrammatically run projects with the Hex API.\u003c/p\u003e\n   \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/speakeasy-sdks/hex-go-sdk/speakeasy_sdk_generation.yml?style=for-the-badge\" /\u003e\n   \u003ca href=\"https://learn.hex.tech/docs/develop-logic/hex-api/overview\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Docs\u0026message=API Ref\u0026color=F5C0C0\u0026style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- Start SDK Installation --\u003e\n## SDK Installation\n\n```bash\ngo get github.com/speakeasy-sdks/hex-go-sdk\n```\n\u003c!-- End SDK Installation --\u003e\n\n## Authentication\n\nAPI Requests are authenticated using Oauth 2.0 Bearer Tokens in the header of the HTTP request. The token is always bound to a single Hex user's account and requests are executed as that Hex user, meaning the user can only execute requests against projects that are in line with the current permissions for that project.\n\n### Token creation\n\n![](https://learn.hex.tech/assets/images/api-tokens-3e39d4aea5ed40b3aeff4d583c80a41d.png)\n\nPersonal access tokens can be created from the API keys section of the User settings page.\n\nA new token can be created by selecting the New Token button, then inputting a description and an expiration time frame. An existing token can be regenerated at any time by selecting the three-dot menu to the right of the token, and selecting Regenerate.\n\n## SDK Example Usage\n\u003c!-- Start SDK Example Usage --\u003e\n```go\npackage main\n\nimport (\n    \"log\"\n    \"github.com/speakeasy-sdks/hex-go-sdk\"\n    \"github.com/speakeasy-sdks/hex-go-sdk/pkg/models/shared\"\n    \"github.com/speakeasy-sdks/hex-go-sdk/pkg/models/operations\"\n)\n\nfunc main() {\n    opts := []hex.SDKOption{\n        hex.WithSecurity(\n            shared.Security{\n                BearerAuth: shared.SchemeBearerAuth{\n                    Authorization: \"Bearer YOUR_BEARER_TOKEN_HERE\",\n                },\n            }\n        ),\n    }\n\n    s := hex.New(opts...)\n    \n    req := operations.CancelRunRequest{\n        PathParams: operations.CancelRunPathParams{\n            ProjectID: \"unde\",\n            RunID: \"deserunt\",\n        },\n    }\n    \n    res, err := s.CancelRun(ctx, req)\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    if res.StatusCode == http.StatusOK {\n        // handle response\n    }\n```\n\u003c!-- End SDK Example Usage --\u003e\n\n\u003c!-- Start SDK Available Operations --\u003e\n## SDK Available Operations\n\n### Hex SDK\n\n* `CancelRun` - Cancel a project run.\n* `GetProjectRuns` - Get the status of the API-triggered runs of a project.\n* `GetRunStatus` - Get the status of a project run.\n* `RunProject` - Trigger a run of the latest published version of a project.\n\u003c!-- End SDK Available Operations --\u003e\n\n### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fhex-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-sdks%2Fhex-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fhex-go-sdk/lists"}