融云IM服务 Server SDK Nodejs版 官网:http://www.rongcloud.cn/
npm install rongcloud
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获取失败");
});