Bandsintown API gem
A Ruby library for accessing the Bandsintown API.
The Bandsintown API lets any developer access the largest database of upcoming concert listings and concert tickets in the world.
For more information visit www.bandsintown.com/api/affiliate_program.
After signing up for the affiliate program and receiving your app_id (see www.bandsintown.com/api/authentication for details), using the Bandsintown API with this gem is as simple as the following examples:
# set the app_id parameter for all requests Bandsintown.app_id = 'YOUR_APP_ID'
# search for an artist's events (www.bandsintown.com/api/requests#artists-events) artist = Bandsintown::Artist.new(“The Killers”) events = artist.events
# search for events using a location (or artists) (www.bandsintown.com/api/requests#events-search) events = Bandsintown::Event.search(:location => 'Boston, MA', :start_date => Time.now, :end_date => 1.week.from_now) events = Bandsintown::Event.search(:artists => ['Mos Def', 'Talib Kweli'], :start_date => Time.now, :end_date => 1.week.from_now)
# search for recommended events using a location and artists (www.bandsintown.com/api/requests#artists-events) events = Bandsintown::Event.recommended(:artists => ['Led Zeppelin'], :location => 'Boston, MA')
# check out the latest events added to the Bandsintown API, updated daily: todays_events = Bandsintown::Event.daily
(The MIT License)
Copyright © 2009 Mike Costanza
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.