@isayme/dingtalk-robot
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

支持的特性

  • 支持 secret 签名
  • 支持 text/markdown/link/actionCard/feedCard 5 种消息类型

快速使用

安装

npm install '@isayme/dingtalk-robot'
或
pnpm add '@isayme/dingtalk-robot'

引用模块

// CommonJS
const { Robot } = require('@isayme/dingtalk-robot')

// ESM & Typescript
import { Robot } from '@isayme/dingtalk-robot'

样例

let accessToken = '你的webhook accessToken'

let dingtalkRobot = new Robot({
  accessToken,
})

async function main() {
  await dingtalkRobot.text('这个是测试消息')
}

main()

相关钉钉文档

接口签名

消息类型及数据格式

Readme

Keywords

none

Package Sidebar

Install

npm i @isayme/dingtalk-robot

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

19.5 kB

Total Files

9

Last publish

Collaborators

  • isayme