{"id":22514652,"url":"https://github.com/worktile/worktile-push","last_synced_at":"2025-08-03T16:31:06.863Z","repository":{"id":57290012,"uuid":"39241474","full_name":"worktile/worktile-push","owner":"worktile","description":"push message to worktile for Node.js","archived":false,"fork":false,"pushed_at":"2015-08-14T02:50:34.000Z","size":113,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-16T19:14:25.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/worktile.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":"2015-07-17T07:41:45.000Z","updated_at":"2019-09-11T00:51:07.000Z","dependencies_parsed_at":"2022-08-25T07:34:12.136Z","dependency_job_id":null,"html_url":"https://github.com/worktile/worktile-push","commit_stats":null,"previous_names":["worktiletech/lesschat-push"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fworktile-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fworktile-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fworktile-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worktile%2Fworktile-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worktile","download_url":"https://codeload.github.com/worktile/worktile-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228553255,"owners_count":17935964,"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-12-07T03:20:04.864Z","updated_at":"2024-12-07T03:20:05.984Z","avatar_url":"https://github.com/worktile.png","language":"JavaScript","readme":"# lesschat-push for Node.js\n发送消息到纷云 message to lesschat - 纷云\n\n*已经迁移到 https://github.com/lesschat/lesschat-push 仓储中*\n\n安装执行 `npm install lesschat-push`\n\n```\nvar lesschatPush = require(\"lesschat-push\");\nvar webhook = new lesschatPush.Webhook(\"https://hook.lesschat.com/incoming/xxxxxx\");\n\n// 发送 attachment 消息\nwebhook.sendAttachment({\n    fallback   : \"用于移动端将提示信息显示在首页上\",\n    color      : \"#cccccc\",  //将消息的正文用指定的颜色进行标示\n    pretext    : \"在显示消息正文之前显示的文本内容\",\n    author_name: \"Terry Lee\",  //用于显示作者名\n    author_link: \"https://github.com/terrylee\",  //作者主页超链接\n    author_icon: \"https://avatars1.githubusercontent.com/u/694592?v=3\u0026s=400\",  //作者\n    title      : \"消息正文标题\",\n    title_link : \"http://lesschat.com\",\n    text       : \"普通文本消息，支持\\n换行\",\n\n    //多区域格式消息正文\n    fields: [\n        {\n            title: \"分区消息标题\",\n            value: \"分区消息内容\",\n            short: 1 // 标识消息的内容时候时候为短消息\n        }\n    ]\n}, function (err, resp, body) {\n    if (err) {\n        console.error(err);\n    }\n    console.log(body);\n});\n\n// 发送文本消息\nwebhook.sendText(\"这是一条来自于Incoming Webhook的消息。\\n并且消息还可以换行。\", function (err, resp, body) {\n    if (err) {\n        console.error(err);\n    }\n    console.log(body);\n});\n\n// callback 函数可选\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworktile%2Fworktile-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworktile%2Fworktile-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworktile%2Fworktile-push/lists"}