{"id":13600285,"url":"https://github.com/appwrite/sdk-for-go","last_synced_at":"2025-04-06T03:11:37.611Z","repository":{"id":39875944,"uuid":"214714349","full_name":"appwrite/sdk-for-go","owner":"appwrite","description":"[READ-ONLY] Official Appwrite GO SDK","archived":false,"fork":false,"pushed_at":"2025-01-29T13:20:01.000Z","size":350,"stargazers_count":78,"open_issues_count":4,"forks_count":26,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-03-30T02:09:00.503Z","etag":null,"topics":["appwrite","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://appwrite.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appwrite.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-10-12T20:57:52.000Z","updated_at":"2025-03-01T01:02:10.000Z","dependencies_parsed_at":"2025-01-28T19:28:02.837Z","dependency_job_id":"7edf6c0e-15cc-425c-93aa-64b8835050dd","html_url":"https://github.com/appwrite/sdk-for-go","commit_stats":{"total_commits":37,"total_committers":8,"mean_commits":4.625,"dds":0.5945945945945945,"last_synced_commit":"1bd199f085b1c28519bd1c81c9dd40e65e37b0a8"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appwrite","download_url":"https://codeload.github.com/appwrite/sdk-for-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427012,"owners_count":20937213,"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":["appwrite","hacktoberfest"],"created_at":"2024-08-01T18:00:34.670Z","updated_at":"2025-04-06T03:11:37.593Z","avatar_url":"https://github.com/appwrite.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Appwrite Go SDK\n\n![License](https://img.shields.io/github/license/appwrite/sdk-for-go.svg?style=flat-square)\n![Version](https://img.shields.io/badge/api%20version-1.6.1-blue.svg?style=flat-square)\n[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)\n[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee\u0026label=twitter\u0026style=flat-square)](https://twitter.com/appwrite)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord\u0026style=flat-square)](https://appwrite.io/discord)\n\n**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-go/releases).**\n\nAppwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Go SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)\n\n![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)\n\n## Installation\n\nTo install using `go get`:\n\n```bash\ngo get github.com/appwrite/sdk-for-go\n```\n\n## Testing the SDK\n\n* clone this repo.\n* create a project and within this project a collection.\n* configure the documents in the collection to have a _key_ = __hello__.\n* Then inject these environment variables:\n\n  ```bash\n  export YOUR_ENDPOINT=https://appwrite.io/v1  \n  export YOUR_PROJECT_ID=6…8  \n  export YOUR_KEY=\"7055781…cd95\"  \n  export COLLECTION_ID=616a095b20180  \n  ```\n\nCreate `main.go` file with:\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/appwrite/sdk-for-go/appwrite\"\n\t\"github.com/appwrite/sdk-for-go/id\"\n)\n\nfunc main() {\n\tclient := appwrite.NewClient(\n\t\tappwrite.WithEndpoint(os.Getenv(\"YOUR_ENDPOINT\")),\n\t\tappwrite.WithProject(os.Getenv(\"YOUR_PROJECT_ID\")),\n\t\tappwrite.WithKey(os.Getenv(\"YOUR_KEY\")),\n\t)\n\n\tdatabases := appwrite.NewDatabase(client)\n\n\tdata := map[string]string{\n\t\t\"hello\": \"world\",\n\t}\n\tdoc, err := databases.CreateDocument(\n\t\tos.Getenv(\"DATABASE_ID\"),\n\t\tos.Getenv(\"COLLECTION_ID\"),\n\t\tid.Unique(),\n\t\tdata,\n\t)\n\tif err != nil {\n\t\tlog.Printf(\"Error creating document: %v\", err)\n\t}\n\n\tlog.Printf(\"Created document: %v\", doc)\n}\n```\n\n* After that, run the following\n\n  \u003e % go run main.go  \n  \u003e 2021/10/16 03:41:17 Created document: map[$collection:616a095b20180 $id:616a2dbd4df16 $permissions:map[read:[] write:[]] hello:world]  \n\n\n## Contribution\n\nThis library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.\n\n## License\n\nPlease see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappwrite%2Fsdk-for-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappwrite%2Fsdk-for-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappwrite%2Fsdk-for-go/lists"}