An open API service indexing awesome lists of open source software.

https://github.com/endel/songsterr-api

A Ruby wrapper for the Songsterr REST API
https://github.com/endel/songsterr-api

Last synced: about 1 year ago
JSON representation

A Ruby wrapper for the Songsterr REST API

Awesome Lists containing this project

README

          

songsterr-api
===
Simple [Songsterr API](http://www.songsterr.com/a/wa/api) Consumer written in Ruby.

Tested on Ruby 1.9.2

Installation
---
gem install songsterr

Documentation
----

See API documentation on [here](http://endel.github.com/songsterr-api)

Usage sample
---

Finding songs.

# Each case above returns an Array of Song
Songsterr::Song.where(:pattern => "Marley")
Songsterr::Song.where(:artist => "Black Sabbath")
Songsterr::Song.where(:artists => ["Black Sabbath", "Metallica"])

Getting song information:

# Get first Song from some artist
song = Songsterr::Song.where(:artist => "Black Sabbath").first
song.title
# => "Iron Man"
song.revision.tracks
# => [#, #, #, ...]
song.revision.tracks.first.title
# => "Geezer Butler"

License
----

This library is distributed under the MIT license. Please see the [LICENSE](https://github.com/endel/songsterr-api/blob/master/LICENSE) file.