{"id":18781538,"url":"https://github.com/devture/synology-chat","last_synced_at":"2025-04-13T12:06:34.124Z","repository":{"id":56967220,"uuid":"192874482","full_name":"devture/synology-chat","owner":"devture","description":"A library to communicate with the Synology Chat API","archived":false,"fork":false,"pushed_at":"2021-07-21T06:41:23.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T12:06:29.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/devture.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-20T07:48:48.000Z","updated_at":"2023-07-05T01:02:37.000Z","dependencies_parsed_at":"2022-08-21T09:50:42.951Z","dependency_job_id":null,"html_url":"https://github.com/devture/synology-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fsynology-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fsynology-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fsynology-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fsynology-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devture","download_url":"https://codeload.github.com/devture/synology-chat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710435,"owners_count":21149190,"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-11-07T20:32:16.248Z","updated_at":"2025-04-13T12:06:34.094Z","avatar_url":"https://github.com/devture.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synology Chat API\n\nA library to communicate with the [Synology Chat API](https://www.synology.com/en-global/knowledgebase/DSM/help/Chat/chat_integration) (just Incoming Webhooks for now).\n\n\n## Installation\n\nInstall through composer: `composer require --dev devture/synology-chat`\n\n\n## Usage\n\n\n### Preparation\n```php\n$communicator = new \\Devture\\Component\\SynologyChat\\Communicator(new \\GuzzleHttp\\Client());\n$client = new \\Devture\\Component\\SynologyChat\\Client($communicator);\n```\n\n\n### Actual usage\n```php\n$incomingWebhookUrl = 'https://chat.DOMAIN/chat/webapi/entry.cgi?api=SYNO.Chat.External\u0026method=incoming\u0026version=2\u0026token=some-token';\n\ntry {\n\t$client-\u003esendWebhookMessage($incomingWebhookUrl, 'Hello!');\n} catch (\\Devture\\Component\\SynologyChat\\Exception\\AuthFailure $e) {\n\t// Bad token. No such incoming webhook?\n} catch (\\Devture\\Component\\SynologyChat\\Exception $e) {\n\t// Another error. Likely transient and can be retried.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fsynology-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevture%2Fsynology-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fsynology-chat/lists"}