It is Netease IM server-side SDK for node.js. using it, you can develop instant messaging Apps (iOS and Android) backed by server side services in node.js
##Supported APIs
- User Account: Create, delete, update, block and unblock user account.
- Messaging: Send many kinds of message to user or user list, also send system notification message.
- Group: Create, delete, update and query teams, also add and remove members to/from team.
- Others: coming soon.
For more api information, you can reference Netease IM API Docs
npm install netease-im
var Promise = require('bluebird');
var config = require('./config');
var log4js = require('log4js');
var logger = log4js.getLogger();
logger.setLevel('DEBUG');
var nim = new Nim({
appsecret: config.appsecret,
appkey: config.appkey,
logger: logger
});
var userForm = {
accid: accid,
name: name,
props: JSON.stringify({type: 'test'}),
icon: 'http:https://wx.qlogo.cn/mmopen/CyYbk1vmHvYCTpBHH4UiblcOM6IEMibm2VweVnbTm5tnWib1rQG5v6t7779AEnDSkFf212MXOVXX29JvZlKicjhUxjpRYDnTPTES/0'
};
nim.createUser(userForm, function(err, result){
...
});
For more example code, see netease-im/test
MIT License. A copy is included with the source.
- GitHub (henryleu)
- Wechat (kingkongslove)
- QQ (1347653)
- Email ([email protected])
Any advices or questions, contact me: