Module: Songkick
- Defined in:
- lib/songkick.rb,
lib/songkick/client.rb,
lib/songkick/client/user.rb,
lib/songkick/client/event.rb,
lib/songkick/client/errors.rb,
lib/songkick/client/search.rb,
lib/songkick/client/request.rb,
lib/songkick/client/calendar.rb,
lib/songkick/client/validations.rb
Defined Under Namespace
Modules: Calendar, Errors, Event, Request, Search, User, Validations Classes: Client
Constant Summary collapse
- API_URL =
'http://api.songkick.com/api/3.0/'
Class Method Summary collapse
-
.new(api_key, format = :json) ⇒ Object
In order to use the API you must have an API key To request one, go to this url: developer.songkick.com/.
Class Method Details
.new(api_key, format = :json) ⇒ Object
In order to use the API you must have an API key To request one, go to this url: developer.songkick.com/
Example: sg = Songkick.new(“myaipkey”) You can pass a second argument (json or xml) which is the output form. json is the default output
Songkick.new is a shortcut for songkick::Client.new You can use both, they are the same
23 24 25 |
# File 'lib/songkick.rb', line 23 def new(api_key, format = :json) Songkick::Client.new(api_key, format) end |