Skip to content

sgtFloyd/rscrobbler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Last.fm API wrapper for Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages