-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Nick Maher edited this page Sep 26, 2016
·
6 revisions
Add this line to your application's Gemfile:
gem 'cisco_spark'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cisco_spark
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
- CiscoSpark::Person
- CiscoSpark::Room
- [CiscoSpark::Membership(Membership)
CiscoSpark::Message
CiscoSpark::Webhook