Project

rscrobbler

0.0
No commit activity in last 3 years
No release in over 3 years
rscrobbler is a Ruby gem for accessing Last.fm's API (http://www.last.fm/api).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

rscrobbler

Ruby library for wrapping Last.fm API methods as documented: www.last.fm/api

Getting Started

Install the gem: https://rubygems.org/gems/rscrobbler

gem install rscrobbler

Generate your Last.fm auth token:

generate_lastfm_auth_token

Configure the library with your LastFM credentials:

include 'rscrobbler'
LastFM.establish_session do |session|
  session.api_key    = (see: www.last.fm/api/account)
  session.api_secret = (see: www.last.fm/api/account)
  session.username   = (last.fm username)
  session.auth_token = (auth token from generate_lastfm_auth_token)
end

Once authenticated, call API methods using the following syntax:

LastFM::Track.scrobble( artist:'Childish Gambino', track:'Bonfire', timestamp:Time.now )

See documentation for detailed method and parameter information.