{"id":15035231,"url":"https://github.com/koeinoue/square-go-sdk","last_synced_at":"2026-02-02T19:32:40.666Z","repository":{"id":65381801,"uuid":"591285473","full_name":"KoeInoue/square-go-sdk","owner":"KoeInoue","description":"Square Go SDK helps you call square API easily","archived":false,"fork":false,"pushed_at":"2024-10-29T07:57:29.000Z","size":65,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-24T02:05:23.343Z","etag":null,"topics":["go","golang","square"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/KoeInoue/square-go-sdk","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/KoeInoue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-20T11:37:19.000Z","updated_at":"2024-08-15T05:27:27.000Z","dependencies_parsed_at":"2024-08-15T06:34:35.417Z","dependency_job_id":"770931ed-0ea5-4bba-8a80-eab3bf9c021c","html_url":"https://github.com/KoeInoue/square-go-sdk","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.0625,"last_synced_commit":"388047a792075f268a5c97b64815aed3659c992b"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoeInoue%2Fsquare-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoeInoue%2Fsquare-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoeInoue%2Fsquare-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoeInoue%2Fsquare-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KoeInoue","download_url":"https://codeload.github.com/KoeInoue/square-go-sdk/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248132122,"owners_count":21052977,"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":["go","golang","square"],"created_at":"2024-09-24T20:27:54.321Z","updated_at":"2026-02-02T19:32:40.598Z","avatar_url":"https://github.com/KoeInoue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Square Go SDK\n\n\u003c!-- # Badges --\u003e\n\n![go](https://img.shields.io/github/go-mod/go-version/KoeInoue/square-go-sdk)\n![license](https://img.shields.io/github/license/KoeInoue/square-go-sdk)\n![star](https://img.shields.io/github/stars/KoeInoue/square-go-sdk?style=social)\n[![Go Test](https://github.com/KoeInoue/square-go-sdk/actions/workflows/go-test.yml/badge.svg)](https://github.com/KoeInoue/square-go-sdk/actions/workflows/go-test.yml)\n\n## Tags\n\n`go` `square`\n\n## Installation\n\n```shell\ngo install github.com/KoeInoue/square-go-sdk\n```\n\nor\n\nimport the package in a file where you want to use the package\n```go\nimport \"github.com/KoeInoue/square-go-sdk\"\n```\n\nthen run\n```go\ngo mod tidy\n```\n\n## Minimal Example\n\n1. Set environment variables\n```shell\nexport SQUARE_ACCESS_TOKEN=yourSandboxAccessToken\nexport ENV=dev\n```\n※ ENV is a variable that just identifies the environment\n\n2. Write code\n\n```go\npackage main\n\nimport (\n    \"os\"\n\n    \"github.com/KoeInoue/square-go-sdk\"\n    \"github.com/KoeInoue/square-go-sdk/http\"\n    \"github.com/KoeInoue/square-go-sdk/models\"\n)\n\nfunc main() {\n    client := getClient()\n    client.CustomerApi.CreateCustomer()\n}\n\nfunc getClient() *http.Client {\n    envType := os.Getenv(\"ENV\")\n    accessToken := os.Getenv(\"SQUARE_ACCESS_TOKEN\")\n\n    if envType != \"production\" {\n        return http.NewClient(square.Config[square.Sandbox]{\n            AccessToken: accessToken,\n            Environment: square.Environments.Sandbox,\n        })\n    } else {\n        return http.NewClient(square.Config[square.Production]{\n            AccessToken: accessToken,\n            Environment: square.Environments.Production,\n        })\n    }\n}\n\n\n```\n\n## SDK Reference\n\n### Payments\n- [Cards](https://github.com/KoeInoue/square-go-sdk/blob/v0.1.3/doc/api/cards.md)\n\n### Subscriptions\n- [Subscriptions](https://github.com/KoeInoue/square-go-sdk/blob/v0.1.3/doc/api/subscriptions.md)\n\n### Item\n- [Catalog](https://github.com/KoeInoue/square-go-sdk/blob/v0.1.3/doc/api/catalog.md)\n\n### Customers\n- [Customers](https://github.com/KoeInoue/square-go-sdk/blob/v0.1.3/doc/api/customers.md#customers)\n\n## Contributors\n\n- [Koe Inoue](https://github.com/KoeInoue)\n\n\n\u003c!-- CREATED_BY_LEADYOU_README_GENERATOR --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoeinoue%2Fsquare-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoeinoue%2Fsquare-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoeinoue%2Fsquare-go-sdk/lists"}