WebEx::Events
A library to read WebEx events through the WebEx API.
Tested against Ruby 2.0.0, 2.1.0, 2.1.1.
Installation
Add this line to your application's Gemfile:
gem 'web-ex-events'
And then execute:
$ bundle
Or install it yourself as:
$ gem install web-ex-events
Usage
require 'web_ex/events'
# Set WebEx site name
ENV['WEB_EX_SITE_NAME'] = "…"
# WebEx Site and Partner ID (available through WebEx support request)
ENV['WEB_EX_SITE_ID'] = "…"
ENV['WEB_EX_PARTNER_ID'] = "…"
# Your WebEx credentials
ENV['WEB_EX_USERNAME'] = "…"
ENV['WEB_EX_PASSWORD'] = "…"
next_30_days = 30 * 24 * 60 * 60
events = WebEx::Events::Event.fetch(next_30_days)
# Print event details
events.each do |event|
puts event.name
puts event.start_date
puts "#{event.duration} mins"
puts event.description
end
# Print all events as JSON
puts events.to_json
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request