huanxin
v0.0.2
Published
huanxin nodejs api
Downloads
2
Readme
Nodejs Client for 环信/Easemob
How To Use
- npm install easemob
- in your code
var easemob = require('easemob');
Em = new easemob({
appKey: "appKey"
clientSecret: "clientSecret",
clientId: "clientId",
orgName: "orgName",
appName: "appName",
loadToken:function(callback) {callback(null, token); },
saveToken:function(token, callback) {callback(null);}
});
Em.createUser({
username: "somename",
password: "password",
nickname: "nickName"
}, function(err, result) {
console.log('err <<<', err);
console.log('result <<<', result);
})
##TODO
##License
MIT