0.0.4 • Published 10 months ago
xbb-api v0.0.4
销帮帮API Client
安装
npm install xbb-api
使用
const XbbClient = require('xbb-api')
const client = new XbbClient({
token: '您的token',
corpId: '您的corpId',
userId: '您的userId',
platform: 'dingtalk' // api平台 钉钉版为dingtalk,其他版为app
})
// client.request('业务模块', 业务参数).then(res => {
// console.log(res)
// })
client.request('user/list', {
page: 1,
pageSize: 20,
}).then(res => {
console.log(res)
})
更多API详情可以点击下方链接查看