{"id":16231511,"url":"https://github.com/hustcc/ding-robot","last_synced_at":"2025-03-19T14:30:38.032Z","repository":{"id":63253927,"uuid":"114330398","full_name":"hustcc/ding-robot","owner":"hustcc","description":":robot: 钉钉机器人 SDK for Node.js。","archived":false,"fork":false,"pushed_at":"2018-05-22T02:01:40.000Z","size":3,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-24T09:19:02.470Z","etag":null,"topics":["ding-robot","dingding","dingtalk","dingtalk-robot"],"latest_commit_sha":null,"homepage":"https://github.com/ProtoTeam/ding-robot","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/hustcc.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":"2017-12-15T05:23:55.000Z","updated_at":"2022-12-08T03:53:31.000Z","dependencies_parsed_at":"2022-11-15T21:31:29.329Z","dependency_job_id":null,"html_url":"https://github.com/hustcc/ding-robot","commit_stats":null,"previous_names":["prototeam/ding-robot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fding-robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fding-robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fding-robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fding-robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hustcc","download_url":"https://codeload.github.com/hustcc/ding-robot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997041,"owners_count":20380980,"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":["ding-robot","dingding","dingtalk","dingtalk-robot"],"created_at":"2024-10-10T13:05:53.914Z","updated_at":"2025-03-19T14:30:37.761Z","avatar_url":"https://github.com/hustcc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ding-robot\n\n\u003e 钉钉机器人 SDK for Node.js。[![Version](https://img.shields.io/npm/v/ding-robot.svg)](https://www.npmjs.com/package/ding-robot) \n\n首先需要准备一个钉钉机器人的 access_token，在钉钉 im 上 `创建自定义机器人` 即可得到。\n\n\n## Usage\n\n```go\nvar DingRobot = require('ding-robot');\n\n// 创建 `自定义机器人` 即可获得\nvar robot = new DingRobot('your access token of dingding robot');\n\n// text\n// robot.text(msg);\nrobot.text('你好，hustcc！');\n\n// md\n// robot.markdown(title, md);\nrobot.markdown('测试 markdown', '# ding-robot\\n\\n' +\n  '\u003e 钉钉机器人 API 接口 api nodejs sdk。\\n\\n' +\n  '## 使用\\n\\n' +\n  '\u003e npm i -S ding-robot\\n\\n' +\n  '```js\\n' +\n  'var DingRobot = require(\\'ding-robot\\');\\n' +\n  'var robot = new DingRobot(token);\\n\\n' +\n  'robot.text(\\'你好，hustcc！\\');' +\n  '```'\n);\n\n// link\n// robot.link(title, content, picUrl, url);\nrobot.link('支付宝首页', '不需要别人给予，你想要的触手可及！。', 'https://t.alipayobjects.com/images/T1HHFgXXVeXXXXXXXX.png', 'https://www.alipay.com/');\n\n// @\n// robot.at('13276109876');\n// robot.at(['13276109876']);\nrobot.at('13276109876').text('你好，hustcc！');\n\n// @ all\n// robot.atAll(true)\n// robot.atAll(false)\nrobot.atAll(true).text('大家好！我是 ding-robot！');\n```\n\n\n## TODO\n\n - FeedCard\n - ActionCard\n\n\n## LICENSE\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhustcc%2Fding-robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhustcc%2Fding-robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhustcc%2Fding-robot/lists"}