Ruby wrapper for Last.Fm API
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION.yml
firstfm.gemspec

README.rdoc

Build
Status

Firstfm

Firstfm is a ruby wrapper for the Last.fm APIs ( www.last.fm/api ).

My main focus is to import events from Last.FM, but with time I will try to add support for all API methods.

Installation

sudo gem install firstfm

or add to your Gemfile

gem 'firstfm'

Configuration

This goes to your initializers/firstfm.rb

Firstfm.configure do |ffm|
  ffm.api_key = "YOUR_KEY_HERE"
end

Usage

Firstfm::Venue.search("arena")

Firstfm::Venue.get_events(8908030)

Firstfm::Geo.get_events :location => "Berlin"

Firstfm::Artist.search "Eminem"

Firstfm::Artist.get_top_tracks "Eminem"

Firstfm::Track.search "Believe"