It's a simple Ruby Wrapper to the Eventioz API. Eventioz is a Brazilian Ticket Platform used by many events in Brazil. This wrapper simplifies the use of their API, providing a layer of abstraction. This is the first release and there're many improvements required. First off, we haven't done any tests until now.
Feel free to send Pull Requests and ask for improvements. If you find any bug, fill an issue!
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install eventioz
First off, you have to log in to the Eventioz:
account = Eventioz.login( :login => 'firstname.lastname@example.org', :password => 'yourpassword') api_key = account.api_key
Don't worry. This gem doesn't store your username and password in any way. It uses it only to sign in and get the API Key. Once it has the API Key, it discards the username and password. Once you have the account data, you can access your organizers, events and registrations. The next example shows how you can get all organizers.
Eventioz::Organizer.all(api_key).each do |organizer| puts organizer.name end
To get all events that belong to an Organizer:
Eventioz::Event.all(api_key, organizer.cached_slug).each do |event| puts event.name end
To get all registrations from an event:
Eventioz::Registration.all(api_key, event.cached_slug).each do |registration| puts registration.first_name end
- Fork it ( https://github.com/marloncarvalho/eventioz/fork )
- 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 a new Pull Request