Skip to content

oporpino/simple_eventick_api

Repository files navigation

SimpleEventickApi

Everything is faster when it is simple!

This gem provider simple way to consummig eventick api

Install

Add this line to your application's Gemfile:

gem 'simple_eventick_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_eventick_api

Usage

Get token

@token = SimpleEventickApi::Auth.authenticate 'email', 'password'

Get events of a user by token

@events = SimpleEventickApi::Event.all token

Get attendees of a event

#for getting all atendees without restrictions
@atendees = SimpleEventickApi::Atendee.all token, event_id

or

#for getting only attendees that checkin after this date
@atendees = SimpleEventickApi::Atendee.all token, event_id, check_at

Find an especific atendee

@atendee = SimpleEventickApi::Atendee.find token, event_id, id

Check-in an atendee

@atendee = SimpleEventickApi::Atendee.check_in token, event_id, code, checked_at

Contributing

  1. Fork it
  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 new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages