【文件属性】:
文件名称:yunxin-im:云信IM,异步处理
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-11 13:09:22
unity node-js yunxin yunxin-im JavaScript
yunxin-im
安装
$ npm install node-yunxin-im
使用
const YunxinIM = require('node-yunxin-im');
const yunxinIM = new YunxinIM('<你的AppKey>', '<你的AppSecret>');
// 创建用户
await yunxinIM.exec('user/create.action', {
accid: 'accid',
donnopOpen: false
});
// 创建群
await yunxinIM.exec('team/create.action', {
tname: 'tname',
owner: 'accid',
members: JSON.stringify([]),
msg: '邀请你来群',
magree: 0,
joinmo
【文件预览】:
yunxin-im-master
----LICENSE(1KB)
----test()
--------1.user.js(6KB)
--------config()
----README.md(2KB)
----docs()
--------msg.md(2KB)
--------history.md(2KB)
--------team.md(4KB)
--------sms.md(941B)
--------user.md(3KB)
--------README.md(273B)
--------event.md(938B)
--------chatroom.md(4KB)
----.gitignore(41B)
----index.js(2KB)
----package.json(774B)