Project

demio-ruby

0.0
No commit activity in last 3 years
No release in over 3 years
Supports all methods for interacting with the Demio API as described at https://publicdemioapi.docs.apiary.io/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.2.23
~> 0.14.1
~> 13.0.6
~> 3.10.0
~> 1.18.3
~> 3.13.0
 Project Readme

Demio Ruby Client

example workflow

A Ruby gem for interacting with the Demio API.

Installation

Add this line to your application's Gemfile:

gem "demio-ruby", require: "demio"

And then execute:

$ bundle

Or install it yourself as:

$ gem install demio-ruby

Usage

Retrieve your API key and API secret from here and initialize the client:

client = Demio::Client.new(
  api_secret: "YOUR API SECRET",
  api_key: "YOUR API KEY"
)

Methods

Actions Methods
List events #events
Fetch an event #event(event_id)
Fetch event date info #event_date(event_id, event_date_id)
Fetch participants list #participants(event_date_id)
Register a registrant #register(payload = {})
Ping #ping

Examples

client = Demio::Client.new(
  api_secret: "YOUR API SECRET",
  api_key: "YOUR API KEY"
)

payload = {
  "id": 56458,
  "name": "Jane Doe",
  "email": "jane.doe@gmail.com"
}

response = client.register(payload)
response.code
# => "200"

JSON.parse(response.body)
# => {"hash"=>"ADv07WFv0RNDQZoF", "join_link"=>"https://event.demio.com/simulated-webinar/ADv07WFv0RNDQZoF"}

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake to run the tests and rubocop. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at here. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

  1. Fork it ( https://github.com/samudary/demio-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the project’s codebases and ther environments is expected to follow the code of conduct.