https://github.com/rtcat/realtimecat-node-sdk
实时猫 Node.js SDK | RealTimeCat SDK for Node.js
https://github.com/rtcat/realtimecat-node-sdk
node-sdk realtimecat
Last synced: 7 days ago
JSON representation
实时猫 Node.js SDK | RealTimeCat SDK for Node.js
- Host: GitHub
- URL: https://github.com/rtcat/realtimecat-node-sdk
- Owner: RTCat
- License: mit
- Created: 2015-09-16T02:16:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T04:18:20.000Z (about 8 years ago)
- Last Synced: 2025-04-30T07:18:37.865Z (21 days ago)
- Topics: node-sdk, realtimecat
- Language: JavaScript
- Size: 43.9 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# realtimecat-node-sdk
实时猫 NodeJS Server SDK | RealTimeCat Server SDK for Node.js配合0.4版[实时猫接口](https://api.realtimecat.com/docs/#!/v0.4)使用
### Install
`npm install realtimecat-node-sdk --save`
### Usage
```javascript
var RealTimeCat = require('realtimecat-node-sdk');var apiKey = "";
var apiSecret = "";
var apiUrl = "";
var realtimecat = new RealTimeCat({apiKey:apiKey, apiSecret:apiSecret, apiUrl: apiUrl});
```### API
请阅读API[文档](docs/API.md)
### 测试
`npm install -g mocha`
clone项目至本地,运行`npm install`安装依赖, 复制`config.sample.js`重命名为`config.js`,
添加`api key`和`secret`, 运行`npm test`进行测试