oli-em-imsdk
v0.9.90
Published
[API文档地址](https://imapp.teamsyun.com/web/#/2?page_id=1628)
Downloads
128
Readme
im-sdk
开发文档API
使用说明
- 先初始化
// 初始化
Factory.init({
schema: 'wss',
host,
port,
wsIdleTime: heartTime,
cid,
env,
gcid,
appkey: sak,
ticket: tokenStr,
uid,
corpAccount,
userAccount: 'ochukai',
onOpen: handleOpen,
onClose: handleClose,
onMessage: handleMessage,
}, false);
- 登录
// login
const handleOpen = async () => {
const ouija = getOuija();
const logger = ouija.getLogger();
const loginResult = await ouija.login({ type: 1 });
};
- 接下来就可以随便调用方法了。
const data = await getHomeSessions({
sessionId: '0',
});