实时猫 NodeJS Server SDK | RealTimeCat Server SDK for Node.js
配合0.4版实时猫接口使用
npm install realtimecat-node-sdk --save
var RealTimeCat = require('realtimecat-node-sdk');
var apiKey = "";
var apiSecret = "";
var apiUrl = "";
var realtimecat = new RealTimeCat({apiKey:apiKey, apiSecret:apiSecret, apiUrl: apiUrl});
请阅读API文档
npm install -g mocha
clone项目至本地,运行npm install
安装依赖, 复制config.sample.js
重命名为config.js
,
添加api key
和secret
, 运行npm test
进行测试