robot-dd

1.0.3 • Public • Published

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
}

Learn more

robot-dd 使用示例文档 钉钉群自定义机器人官方文档

Package Sidebar

Install

npm i robot-dd

Weekly Downloads

9

Version

1.0.3

License

ISC

Unpacked Size

4.27 kB

Total Files

3

Last publish

Collaborators

  • linshangchun