{"id":31067316,"url":"https://github.com/bububa/creem-go","last_synced_at":"2025-09-15T19:58:41.613Z","repository":{"id":305137571,"uuid":"1022036511","full_name":"bububa/creem-go","owner":"bububa","description":"creem.io golang SDK","archived":false,"fork":false,"pushed_at":"2025-07-18T10:58:44.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-18T14:44:21.323Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bububa.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,"zenodo":null}},"created_at":"2025-07-18T10:49:12.000Z","updated_at":"2025-07-18T10:58:47.000Z","dependencies_parsed_at":"2025-07-18T14:52:41.187Z","dependency_job_id":"b2ea1b06-f7c9-4e3b-8971-70c1198aaed9","html_url":"https://github.com/bububa/creem-go","commit_stats":null,"previous_names":["bububa/creem-go"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bububa/creem-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fcreem-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fcreem-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fcreem-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fcreem-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bububa","download_url":"https://codeload.github.com/bububa/creem-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fcreem-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275312966,"owners_count":25442563,"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-09-15T02:00:09.272Z","response_time":75,"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-09-15T19:58:37.542Z","updated_at":"2025-09-15T19:58:41.605Z","avatar_url":"https://github.com/bububa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# creem-go creem.io SDK implementation in Golang\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/bububa/creem-go.svg)](https://pkg.go.dev/github.com/bububa/creem-go)\n[![Go](https://github.com/bububa/creem-go/actions/workflows/go.yml/badge.svg)](https://github.com/bububa/creem-go/actions/workflows/go.yml)\n[![goreleaser](https://github.com/bububa/creem-go/actions/workflows/goreleaser.yml/badge.svg)](https://github.com/bububa/creem-go/actions/workflows/goreleaser.yml)\n[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/bububa/creem-go.svg)](https://github.com/bububa/creem-go)\n[![GoReportCard](https://goreportcard.com/badge/github.com/bububa/creem-go)](https://goreportcard.com/report/github.com/bububa/creem-go)\n[![GitHub license](https://img.shields.io/github/license/bububa/creem-go.svg)](https://github.com/bububa/creem-go/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/bububa/creem-go.svg)](https://gitHub.com/bububa/creem-go/releases/)\n\n## Installation\n\n```bash\ngo install github.com/bububa/creem-go\n```\n\n## Usage\n\n### Create Checkout Session\n\n```golang\nimport (\n    \"github.com/bububa/creem-go\"\n    \"github.com/bububa/creem-go/checkouts\"\n)\nfunc main() {\n  clt := creem.New(os.Getenv(\"CREEM_KEY\"))\n  req := checkouts.CreateRequest {\n    ProductID: \"xxx\",\n  }\n  var ret checkouts.Checkout\n  if err := checkouts.Create(context.Background(), \u0026req, \u0026ret); err != nil {\n    panic(err)\n  }\n  fmt.Println(ret)\n}\n```\n\n### Get Checkout Session\n\n```golang\nimport (\n    \"github.com/bububa/creem-go\"\n    \"github.com/bububa/creem-go/checkouts\"\n)\nfunc main() {\n  clt := creem.New(os.Getenv(\"CREEM_KEY\"))\n  checkoutID := \"xxx\"\n  var ret checkouts.Checkout\n  if err := checkouts.Get(context.Background(), checkoutID, \u0026ret); err != nil {\n    panic(err)\n  }\n  fmt.Println(ret)\n}\n```\n\n### Webhook\n\n```golang\npackage main\n\nimport (\n    \"fmt\"\n    \"net/http\"\n\n    \"github.com/bububa/creem-go/webhooks\"\n)\n\nfunc eventHanderl(ctx context.Context, ev *webhooks.Event) error {\n    fmt.Prinf(\"EVENT: %+v\\n\", ev)\n    return nil\n}\n\nfunc main() {\n    handler := webhooks.NewHandler(os.Getenv(\"CREEM_KEY\"), eventHandler)\n    http.HandleFunc(\"/\", handler.ServeHTTP)\n\n    port := \":8080\"\n    fmt.Printf(\"Starting server on http://localhost%s\\n\", port)\n    if err := http.ListenAndServe(port, nil); err != nil {\n        panic(err)\n    }\n}\n```\n\nFor more details please check in pkg.go.dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbububa%2Fcreem-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbububa%2Fcreem-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbububa%2Fcreem-go/lists"}