{"id":23096298,"url":"https://github.com/9ssi7/exponent","last_synced_at":"2025-07-31T13:02:11.156Z","repository":{"id":267110122,"uuid":"900286725","full_name":"9ssi7/exponent","owner":"9ssi7","description":"Send push notifications to Expo apps using Golang","archived":false,"fork":false,"pushed_at":"2025-01-23T10:34:22.000Z","size":18,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T06:10:50.473Z","etag":null,"topics":["expo","expo-push-notifications","exponent","golang"],"latest_commit_sha":null,"homepage":"https://docs.expo.dev/push-notifications/sending-notifications","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/9ssi7.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":"2024-12-08T11:47:16.000Z","updated_at":"2025-05-02T13:00:47.000Z","dependencies_parsed_at":"2025-05-05T14:46:03.213Z","dependency_job_id":"6b7958d6-1224-4e83-9137-eb574d9f1b5e","html_url":"https://github.com/9ssi7/exponent","commit_stats":null,"previous_names":["9ssi7/exponent"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/9ssi7/exponent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9ssi7%2Fexponent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9ssi7%2Fexponent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9ssi7%2Fexponent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9ssi7%2Fexponent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9ssi7","download_url":"https://codeload.github.com/9ssi7/exponent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9ssi7%2Fexponent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268043465,"owners_count":24186414,"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-07-31T02:00:08.723Z","response_time":66,"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":["expo","expo-push-notifications","exponent","golang"],"created_at":"2024-12-16T22:33:32.460Z","updated_at":"2025-07-31T13:02:11.072Z","avatar_url":"https://github.com/9ssi7.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exponent\n\nSend push notifications to Expo apps using Golang\n\nrevised version of: https://github.com/oliveroneill/exponent-server-sdk-golang/tree/master\n\n## Documentation\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/9ssi7/exponent.svg)](https://pkg.go.dev/github.com/9ssi7/exponent)\n\n## Installation\n```\ngo get github.com/9ssi7/exponent\n```\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"time\"\n\n\t\"github.com/9ssi7/exponent\"\n)\n\nfunc main() {\n\tc := exponent.NewClient(exponent.WithAccessToken(\"your-access-token\"))\n\n\ttkn := exponent.MustParseToken(\"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]\")\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)\n\tdefer cancel()\n\tres, err := c.PublishSingle(ctx, \u0026exponent.Message{\n\t\tTo:       []*exponent.Token{tkn},\n\t\tBody:     \"This is a test notification\",\n\t\tData:     exponent.Data{\"withSome\": \"data\"},\n\t\tSound:    \"default\",\n\t\tTitle:    \"Notification Title\",\n\t\tPriority: exponent.DefaultPriority,\n\t})\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor _, receipt := range res {\n\t\tif receipt.IsOk() {\n\t\t\tprintln(\"Notification sent successfully\")\n\t\t} else {\n\t\t\tprintln(\"Notification failed\")\n\t\t}\n\t}\n}\n\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contribution Guidelines](CONTRIBUTING.md) for details.\n\n## License\n\nThis project is licensed under the Apache License. See [LICENSE](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9ssi7%2Fexponent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9ssi7%2Fexponent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9ssi7%2Fexponent/lists"}