Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 824 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 824 Bytes

NPM version License

融云 Server SDK

融云IM服务 Server SDK Nodejs版 官网:http://www.rongcloud.cn/

Install

npm install rongcloud

How to use

var RongAPI = require('rongcloud');
var rongAPI = new RongAPI('您的AppKey', '您的AppSecret');
rongAPI.user.getToken(100000, '张三', '', function(data){
    data = JSON.parse(data);
    if (data.code == 200)
        console.log("获取Token成功:" + data.token);
    else
        console.log("Token获取失败");
});