Songkick ruby

songkick ruby is a gem for the Songkick api

Installation


    gem install songkick_ruby
  

Usage

First step


    client = Songkick.new("your songkick api key", :json)
    # or
    client = Songkick::Client.new("your songckick api key", :json)
  

Search

Search events. More in,formation here: http://www.songkick.com/developer/event-search


    events = client.search_events(:artist_name => "lady gaga", :location => "clientip:84.102.219.109")
  

Search locations. More in,formation here: http://www.songkick.com/developer/location-search


    locations = client.search_locations(:query => "paris")
  

Search artists. More in,formation here: http://www.songkick.com/developer/artist-search: http://www.songkick.com/developer/artist-search


    artists = client.search_locations("lady gaga")
  

Event

Find an event More in,formation here: http://www.songkick.com/developer/artist-search


    random_event = client.find_event(9969693)
  

Calendar

Get the calendar of an artist. More information here: http://www.songkick.com/developer/upcoming-events-for-artist


    coldplay_calendar = client.artist_calendar(197928)
  

Get the calendar of a location. More information here: http://www.songkick.com/developer/upcoming-events-for-metro-area


    paris = client.artist_calendar(28909)
  

Get the calendar of a user. More information here: http://www.songkick.com/developer/upcoming-events-for-user


    random_user = client.artist_calendar(847914)