Description
robot-dd: 钉钉群自定义机器人消息接口全封装
Features
- 作用全接口,统一入参
- 引用单一,使用方便
Use
npm install robot-dd
const Robot_DD = require("robot-dd");
const robotDD = new Robot_DD({
access_token: xxxxxx,
secret: xxxxxx
});
const res = await robotDD.sendText({
text: `time: ${Date.now()}\n 测试钉钉机器人消息发送`,
});
if(res.errcode === 0){
// todo: Success
}else{
//todo: Error
}