{"id":23991412,"url":"https://github.com/jianyuan/go-sentry","last_synced_at":"2025-04-06T14:12:47.546Z","repository":{"id":37276089,"uuid":"82491845","full_name":"jianyuan/go-sentry","owner":"jianyuan","description":"Go library for accessing the Sentry Web API","archived":false,"fork":false,"pushed_at":"2025-03-05T05:53:39.000Z","size":437,"stargazers_count":22,"open_issues_count":3,"forks_count":38,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T13:08:52.293Z","etag":null,"topics":["api-client","go","golang","sentry"],"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/jianyuan.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":"2017-02-19T21:46:54.000Z","updated_at":"2024-11-24T22:09:33.000Z","dependencies_parsed_at":"2023-11-30T21:25:14.267Z","dependency_job_id":"163d32a0-3c83-4490-9669-18294c4d0eb2","html_url":"https://github.com/jianyuan/go-sentry","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianyuan%2Fgo-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianyuan%2Fgo-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianyuan%2Fgo-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianyuan%2Fgo-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jianyuan","download_url":"https://codeload.github.com/jianyuan/go-sentry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492565,"owners_count":20947545,"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":["api-client","go","golang","sentry"],"created_at":"2025-01-07T19:54:30.543Z","updated_at":"2025-04-06T14:12:47.523Z","avatar_url":"https://github.com/jianyuan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-sentry [![Go Reference](https://pkg.go.dev/badge/github.com/jianyuan/go-sentry/v2/sentry.svg)](https://pkg.go.dev/github.com/jianyuan/go-sentry/v2/sentry)\n\nGo library for accessing the [Sentry Web API](https://docs.sentry.io/api/).\n\n## Installation\ngo-sentry is compatible with modern Go releases in module mode, with Go installed:\n\n```sh\ngo get github.com/jianyuan/go-sentry/v2/sentry\n```\n\n## Usage\n\n```go\nimport \"github.com/jianyuan/go-sentry/v2/sentry\"\n```\n\nCreate a new Sentry client. Then, use the various services on the client to access different parts of the\nSentry Web API. For example:\n\n```go\nclient := sentry.NewClient(nil)\n\n// List all organizations\norgs, _, err := client.Organizations.List(ctx, nil)\n```\n\n### Authentication\n\nThe library does not directly handle authentication. When creating a new client, pass an\n`http.Client` that can handle authentication for you. We recommend the [oauth2](https://pkg.go.dev/golang.org/x/oauth2)\nlibrary. For example:\n\n```go\npackage main\n\nimport (\n\t\"github.com/jianyuan/go-sentry/v2/sentry\"\n\t\"golang.org/x/oauth2\"\n)\n\nfunc main() {\n    ctx := context.Background()\n    tokenSrc := oauth2.StaticTokenSource(\n        \u0026oauth2.Token{AccessToken: \"YOUR-API-KEY\"},\n    )\n    httpClient := oauth2.NewClient(ctx, tokenSrc)\n    \n    client := sentry.NewClient(httpClient)\n    \n    // List all organizations\n    orgs, _, err := client.Organizations.List(ctx, nil)\n}\n```\n\n## Code structure\nThe code structure was inspired by [google/go-github](https://github.com/google/go-github).\n\n## License\nThis library is distributed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianyuan%2Fgo-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjianyuan%2Fgo-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianyuan%2Fgo-sentry/lists"}