Module: Songkick::Calendar

Included in:
Client
Defined in:
lib/songkick/client/calendar.rb

Instance Method Summary collapse

Instance Method Details

#artist_calendar(artist_id, page = 1) ⇒ Object

Find upcoming events for an artist

Example: sg = Songkick.new(“myapikey”) events = sg.artist_calendar(123) or events = sg.artist_calendar(123, 2)

The first argument is the artist_id and the second argument is the page number, by default it is set to 1



14
15
16
# File 'lib/songkick/client/calendar.rb', line 14

def artist_calendar(artist_id, page = 1)
  get "artists/#{artist_id}/calendar.#{format}", page
end

#location_calendar(location_id, page = 1) ⇒ Object

Find upcoming events for a location

Example: sg = Songkick.new(“myapikey”) events = sg.location_calendar(123) or events = sg.location_calendar(123, 2)

The first argument is the artist_id and the second argument is the page number, by default it is set to 1



28
29
30
# File 'lib/songkick/client/calendar.rb', line 28

def location_calendar(location_id, page = 1)
  get "metro_areas/#{location_id}/calendar.#{format}", page
end

#user_calendar(username, page = 1) ⇒ Object

Find upcoming events for a user

Example: sg = Songkick.new(“myapikey”) events = sg.users(123) or events = sg.users(123, 2)

The first argument is the artist_id and the second argument is the page number, by default it is set to 1



42
43
44
# File 'lib/songkick/client/calendar.rb', line 42

def user_calendar(username, page = 1)
  get "users/#{username}/calendar.#{format}", page
end

#venue_calendar(venue_id, page = 1) ⇒ Object

Find upcoming events for a venue

Example: sg = Songkick.new(“myapikey”) or events = sg.usersvenue_calendar(123)

The first argument is the venue_id and the second argument is the page number, by default it is set to 1



55
56
57
# File 'lib/songkick/client/calendar.rb', line 55

def venue_calendar(venue_id, page = 1)
  get "users/#{venue_id}/venues.#{format}", page
end