{"id":19309858,"url":"https://github.com/gotify/go-api-client","last_synced_at":"2025-04-22T13:33:37.026Z","repository":{"id":57491522,"uuid":"158285394","full_name":"gotify/go-api-client","owner":"gotify","description":"A generated swagger client for making requests to gotify/server.","archived":false,"fork":false,"pushed_at":"2020-05-20T19:19:08.000Z","size":73,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T00:22:38.197Z","etag":null,"topics":["client","golang","gotify","swagger"],"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/gotify.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}},"created_at":"2018-11-19T20:23:31.000Z","updated_at":"2024-12-06T17:26:06.000Z","dependencies_parsed_at":"2022-08-30T23:22:17.106Z","dependency_job_id":null,"html_url":"https://github.com/gotify/go-api-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotify%2Fgo-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotify%2Fgo-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotify%2Fgo-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotify%2Fgo-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotify","download_url":"https://codeload.github.com/gotify/go-api-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250249015,"owners_count":21399372,"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":["client","golang","gotify","swagger"],"created_at":"2024-11-10T00:21:09.324Z","updated_at":"2025-04-22T13:33:36.761Z","avatar_url":"https://github.com/gotify.png","language":"Go","readme":"# Gotify Golang API-Client [![travis-badge]][travis]\n\nGenerated with [swagger-go](https://github.com/go-swagger/go-swagger).\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\t\"net/url\"\n\n\t\"github.com/gotify/go-api-client/v2/auth\"\n\t\"github.com/gotify/go-api-client/v2/client/message\"\n\t\"github.com/gotify/go-api-client/v2/gotify\"\n\t\"github.com/gotify/go-api-client/v2/models\"\n)\n\nconst (\n\tgotifyURL        = \"https://push.gotify.url\"\n\tapplicationToken = \"AxNVvRfx9.ZKCTj\"\n)\n\nfunc main() {\n\tmyURL, _ := url.Parse(gotifyURL)\n\tclient := gotify.NewClient(myURL, \u0026http.Client{})\n\tversionResponse, err := client.Version.GetVersion(nil)\n\n\tif err != nil {\n\t\tlog.Fatal(\"Could not request version \", err)\n\t\treturn\n\t}\n\tversion := versionResponse.Payload\n\tlog.Println(\"Found version\", *version)\n\n\tparams := message.NewCreateMessageParams()\n\tparams.Body = \u0026models.MessageExternal{\n\t\tTitle:    \"my title\",\n\t\tMessage:  \"my message\",\n\t\tPriority: 5,\n\t}\n\t_, err = client.Message.CreateMessage(params, auth.TokenAuth(applicationToken))\n\n\tif err != nil {\n\t\tlog.Fatalf(\"Could not send message %v\", err)\n\t\treturn\n\t}\n\tlog.Println(\"Message Sent!\")\n}\n```\n\n## Update Instructions\n\n* Change version in [Makefile](Makefile).\n* Run `make clean generate`\n* Commit changes\n\n [travis]: https://travis-ci.org/gotify/go-api-client\n [travis-badge]: https://travis-ci.org/gotify/go-api-client.svg?branch=master\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotify%2Fgo-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotify%2Fgo-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotify%2Fgo-api-client/lists"}