Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marchfederico/node-sparkclient
A simple implementation of the Cisco Spark APIs
https://github.com/marchfederico/node-sparkclient
Last synced: 3 months ago
JSON representation
A simple implementation of the Cisco Spark APIs
- Host: GitHub
- URL: https://github.com/marchfederico/node-sparkclient
- Owner: marchfederico
- License: mit
- Created: 2015-12-14T17:34:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-29T23:11:32.000Z (over 7 years ago)
- Last Synced: 2024-07-04T07:28:47.070Z (5 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 7
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-webex - sparkclient - A simple Node.js module (by marchfederico). (Client SDKs / REST API clients)
README
Node Cisco Spark Client
===========================================[node-sparkclient](https://github.com/marchfederico/node-sparkclient) is node Cisco Spark module. It provides a simple way to work with the Cisco Spark APIs
## Installation
`npm install node-sparkclient`
## Usage
This module assumes you have received an access token from the Cisco Spark Oauth2 service.
## The Cisco Spark Client Library Functions
### Pagination
All list api function calls support pagination. To get the next page of results, simply call the specific list function with 'next' as the first parameter. Examples below.### Create the Spark Client object
#### CiscoSparkClient(accessToken)
```javascript
var sparkClient = new CiscoSparkClient('Kjc0YTA5MWUtZTJlYi00NzNhLWI2NGQtYzAxOGJkZjat27ZlMzZkY2U2OWQtNTdi')
```
---### Room Functions
Rooms are virtual meeting place where people post messages and collaborate to get work done. This API is used to manage the rooms themselves.
#### CiscoSparkClient.listRooms(maxRooms, callback)
```javascript
sparkClient.listRooms(10, function(err, rooms) {
if (!err) {
for (i=0;i