Project

lastfm

0.22
No commit activity in last 3 years
No release in over 3 years
A ruby interface for Last.fm web services version 2.0
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

< 12.3.3
~> 3.4.0

Runtime

 Project Readme

ruby-lastfm Build Status

A Ruby interface for Last.fm Web Services v2.0

Synopsis

require 'lastfm'

lastfm = Lastfm.new(api_key, api_secret)
token = lastfm.auth.get_token

# open 'http://www.last.fm/api/auth/?api_key=xxxxxxxxxxx&token=xxxxxxxx' and grant the application

lastfm.session = lastfm.auth.get_session(token: token)['key']

lastfm.track.love(artist: 'Hujiko Pro', track: 'acid acid 7riddim')
lastfm.track.scrobble(artist: 'Hujiko Pro', track: 'acid acid 7riddim')
lastfm.track.update_now_playing(artist: 'Hujiko Pro', track: 'acid acid 7riddim')

Supported Rubies

  • 1.9.3
  • 2.0.0
  • 2.1.0
  • 2.2.0

Supported API Methods

It supports methods which require authentication.

Album

Artist

Auth

Event

Radio

Tag

Tasteometer

Track

User

Geo

Group

Library

Chart

Installation

Archive Installation

rake install

Gem Installation

gem update --system
gem install gemcutter
gem tumble
gem install lastfm

Features/Problems

Comitters

see https://github.com/youpy/ruby-lastfm/contributors

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2010 youpy. See LICENSE for details.