
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@zz554952942/dingtalk-robot-sdk
Advanced tools
钉钉自定义机器人SDk, 支持文本 (text)、链接 (link)、markdown(markdown)、ActionCard、FeedCard消息类型。
npm install dingtalk-robot-sdk --save-dev
const Robot = require("dingtalk-robot-sdk")
const robot = new Robot({
accessToken: 'accessToken',
secret: 'secret',
});
const Text = Robot.Text;
const text = new Text('我就是我, @1825718XXXX 是不一样的烟火');
text.atPhone('1825718XXXX');
robot.send(text);
const Link = Robot.Link;
const link = new Link('这个即将发布的新版本,创始人xx称它为“红树林');
link.setTitle('时代的火车向前开')
.setImage("https://images")
.setUrl("https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI")
robot.send(link);
const Markdown = Robot.Markdown;
const markDown = new Markdown();
markDown.setTitle("杭州天气").add("#### 杭州天气 @156xxxx8827\n")
.add("> 9度,西北风1级,空气良89,相对温度73%\n\n").atPhone('1825718XXXX')
robot.send(markDown);
const ActionCard = Robot.ActionCard;
const actionCard = new ActionCard();
actionCard.setTitle("乔布斯 20 年前想打造一间苹果咖啡厅,而它正是 Apple Store 的前身")
.setText(`
### 乔布斯 20 年前想打造的苹果咖啡厅
Apple Store 的设计正从原来满满的科技感走向生活化,而其生活化的走向其实可以追溯到 20 年前苹果一个建立咖啡馆的计划`)
.setHideAvatar(1).setBtnOrientation(1)
.setSingleTitle("阅读全文")
.setSingleURL("https://www.dingtalk.com/");
robot.send(actionCard);
const ActionCard = Robot.ActionCard;
const actionCard = new ActionCard();
actionCard.setTitle("乔布斯 20 年前想打造一间苹果咖啡厅,而它正是 Apple Store 的前身")
.setText(`
### 乔布斯 20 年前想打造的苹果咖啡厅
Apple Store 的设计正从原来满满的科技感走向生活化,而其生活化的走向其实可以追溯到 20 年前苹果一个建立咖啡馆的计划`)
.setHideAvatar(1).setBtnOrientation(1)
.setBtns([
{
"title": "内容不错",
"actionURL": "https://www.dingtalk.com/"
},
{
"title": "不感兴趣",
"actionURL": "https://www.dingtalk.com/"
}
]);
robot.send(actionCard);
const FeedCard = Robot.FeedCard;
const feedCard = new FeedCard([{
"title": "时代的火车向前开",
"messageURL": "https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI",
"picURL": "https://www.dingtalk.com/"
},
{
"title": "时代的火车向前开2",
"messageURL": "https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI",
"picURL": "https://www.dingtalk.com/"
}]);
robot.send(feedCard);
FAQs
dingtalk robot sdk
We found that @zz554952942/dingtalk-robot-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.