Project

seat_geek

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby gem for communicating with the SeatGeek REST API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 3.3.0
~> 10.4.0
~> 3.4.0

Runtime

~> 2.14.4
~> 1.0.1
~> 2.9.3
 Project Readme

SeatGeek

Gem Version Build Status Code Climate

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

Events

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

Accepts 1 options parameter

params = { travel_dates: {arrive: '2016-03-15', depart: '2016-03-19', datetime_type: 'utc'},
           state: 'ny', #either state or city
           city: 'new-york-city', #either state or city
           attendee_count: num,
           event_type: 'taxonomie',
           seat_geek_partner_id: 1234,
           pagination: {per_page: 25, page: 2}
         }
SeatGeek.get_events(params)

------

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

Accepts 1 integer

Taxonomy

taxonomy = SeatGeek.get_taxonomies

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

callable methods
taxonomy.sports.
  - all
  - baseball
  - basketball
  - hockey
  - football
  - auto_racing
  - golf
  - fighting
  - tennis
  - animal_sports
  - extreme_sports
  - olympic_sports

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

callable methods
taxonomy.concert.
  - all
  - music_festival

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

taxonomy.theater.
  - all
  - classical

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

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.