欢拓云直播nodejs sdk
Installation
npm install talkfunsdk
Usage
var Talkfun = require('talkfunsdk');
var openID = 'xxxx';
var openToken = 'xxxx';
var client = new Talkfun.Client(openID,openToken);
client.userAccess(10000,'斯巴达',Talkfun.ROLE.user,534133,3600,{},function(res){
if(res.code === Talkfun.CODE.SUCCESS){
//TODO
}else{
console.error(res);
}
});