Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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