Skip to content
Nick Maher edited this page Sep 26, 2016 · 6 revisions

Installation

Add this line to your application's Gemfile:

gem 'cisco_spark'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cisco_spark

Usage

Configuration

Configuration can be done in an initializer on app boot. An API key or users OAuth token is required to make any API requests.

API key example:

CiscoSpark.configure do |config|
  config.api_key = 'YOUR KEY'
end

If you are using OAuth token you can wrap API operaions in a block, all API calls within the block will then use that token.

OAuth token example:

CiscoSpark.with_token('OAuth token') do
  users_rooms = CiscoSpark::Room.fetch_all
end

Models

Models

Clone this wiki locally