{"id":15780325,"url":"https://github.com/ulisesgascon/go-synology-chat","last_synced_at":"2025-03-31T16:34:54.781Z","repository":{"id":238909701,"uuid":"797733747","full_name":"UlisesGascon/go-synology-chat","owner":"UlisesGascon","description":"Simple wrapper to send Messages to Synology Chat","archived":false,"fork":false,"pushed_at":"2024-05-08T19:25:34.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T20:02:23.591Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UlisesGascon.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":"2024-05-08T12:14:00.000Z","updated_at":"2024-05-08T19:25:34.000Z","dependencies_parsed_at":"2024-05-08T20:51:23.115Z","dependency_job_id":null,"html_url":"https://github.com/UlisesGascon/go-synology-chat","commit_stats":null,"previous_names":["ulisesgascon/go-synology-chat"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fgo-synology-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fgo-synology-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fgo-synology-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fgo-synology-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UlisesGascon","download_url":"https://codeload.github.com/UlisesGascon/go-synology-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498455,"owners_count":20787316,"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":[],"created_at":"2024-10-04T18:41:14.273Z","updated_at":"2025-03-31T16:34:54.742Z","avatar_url":"https://github.com/UlisesGascon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\u003ch1 align=\"center\"\u003e\n  go-synology-chat\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Simple wrapper to send Messages to Synology Chat in Go\n\u003c/p\u003e\n\n\n# About\n\nSimple wrapper to send Messages to [Synology Chat](https://www.synology.com/es-es/dsm/feature/chat) in Go\n\n🌟 If you want a Node.js version, please check [synology-chat-communicator](https://www.npmjs.com/package/synology-chat-communicator) 🌟\n\n## ❤️ Awesome Features:\n\n- Out of the box simple Interface. 🔥\n- Added support for multimedia messages 🍺\n- Simple way to send direct messages to one or many users  🎉\n- Direct support to list users and channels 🔊\n- Zero dependencies 💪\n- Easy to use and great test coverage ✅\n\n\n## Installation\n\n```bash\ngo get github.com/UlisesGascon/go-synology-chat@1.0.0\n```\n\n## Usage\n\n### Simple example\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/UlisesGascon/go-synology-chat\"\n)\n\nfunc main() {\n    baseUrl := \"https://\u003cIP-OR-URL\u003e:\u003cPORT\u003e\"\n    token := \"\u003cYOUR-TOKEN\u003e\"\n    ignoreSSLErrors := true\n\n    sc, err := synologychat.New(baseUrl, token, ignoreSSLErrors)\n    if err != nil {\n        fmt.Println(\"Error initializing SynologyChat:\", err)\n        return\n    }\n\n    users, err := sc.GetUsers()\n    if err != nil {\n        fmt.Println(\"Error getting users:\", err)\n        return\n    }\n\n    channels, err := sc.GetChannels()\n    if err != nil {\n        fmt.Println(\"Error getting channels:\", err)\n        return\n    }\n\n    const userId = 43451\n    data, err := sc.SendDirectMessage([]int{userId}, \"Hello, World!\")\n    if err != nil {\n        fmt.Println(\"Error sending direct message:\", err)\n        return\n    }\n\n    fmt.Println(users)\n    fmt.Println(channels)\n    fmt.Println(data)\n}\n```\n\n### Disable SSL validation\n\nIf you have a Synology NAS with invalid SSL certificates (due to expiration or other issues), you can disable the SSL validation in the requests generated by the library by using the configuration parameter `ignoreSSLErrors`.\n\n\n## Additional Features\n\nPlease check out the official [DSM Documentation](https://kb.synology.com/en-uk/DSM/help/Chat/chat_integration?version=7) to include new features\n\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/UlisesGascon/.github/blob/main/contributing.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/go-synology-chat/tags).\n\n## Authors\n\n- **Ulises Gascón** - Initial work - [@ulisesGascon](https://github.com/ulisesGascon)\n\nSee also the list of [contributors](https://github.com/go-synology-chat/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n- This project is under development, but you can help us to improve it! We :heart: FOSS!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisesgascon%2Fgo-synology-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulisesgascon%2Fgo-synology-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisesgascon%2Fgo-synology-chat/lists"}