1.0.0 • Published 5 years ago
@jinchaofs/client v1.0.0
@wulai/client
安装
npm install @wulai/client -S
使用条件
Node.js >= 8.x
如何使用
"use strict";
const WuLaiClient = require("@wulai/client");
// 初始化 client,pubkey 和 secret 必传
const client = new WuLaiClient({
pubkey: "your pubkey",
secret: "your secret"
});
client
.getBotResponse({
msg_body: {
text: {
content: "谢谢"
}
},
user_id: "created user_id",
extra: "extra info"
})
.then(res => {
console.log(res);
});
License
The MIT License
1.0.0
5 years ago