SeatGeek

Uses the SeatGeek Platform API to data around tickets in the USA.

Installation

Add this line to your application's Gemfile:

gem 'seat_geek'

Or install it yourself as:

$ gem install seat_geek

Usage

Taxonomy

taxonomy = SeatGeek::Taxonomy.new()

taxonomy.sports
# Events that contains parent_id of 1000000
#=> <SeatGeek::Taxonomies::Sports: @parent_object={ ... },
                                   @sub_taxonomies= [{"parent_id"=>1000000, "id"=>1010100, "name"=>"mlb"} ..]

taxonomy.concert
# Events that contains parent_id of 2000000
#=> <SeatGeek::Taxonomies::Concert: @parent_object={ ... },
                                   @sub_taxonomies= [{"parent_id"=>2000000, "id"=>2010000, "name"=>"music_festival"} ..]

taxonomy.theater
# Events that contains parent_id of 3000000
#=> <SeatGeek::Taxonomies::Concert: @parent_object={ ... },
                                   @sub_taxonomies= [{"parent_id"=>3000000, "id"=>3020000, "name"=>"cirque_du_soleil"} ..]

all = taxonomy.all
# => GET http://api.seatgeek.com/2/taxonomies
#=> contains all of the above

all[:sports] or
all[:concert] or
all[:theater]

Events

SeatGeek.get_events()
# => GET http://api.seatgeek.com/2/events

Accepts 1 parameter

params = { month_of_the_year: '2016-03',
           state: 'ny',
           attendee_count: num,
           event_type: 'taxonomie',
           seat_geek_partner_id: 1234,
         }
SeatGeek.get_events(params)

TODO Implementation

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jmoon/seat_geek.

please write tests with each pull request

If you're lookig for features to work on, please check out https://github.com/jmoon90/seat_geek/issues

License

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