Project

eventioz

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby client library for the Eventioz platform.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

Eventioz

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!

Installation

Add this line to your application's Gemfile:

gem 'eventioz'

And then execute:

$ bundle

Or install it yourself as:

$ gem install eventioz

Usage

First off, you have to log in to the Eventioz:

account = Eventioz.login(
    :login => 'youremail@yourdomain.com',
    :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

Contributing

  1. Fork it ( https://github.com/marloncarvalho/eventioz/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