Memphis
An easy way to use The Echo Nest's Project Rosetta Stone to lookup IDs of other providers using a Echo Nest ID.
The Decree of Memphis is the message that is inscribed on the actual Rosetta Stone.
Installation
Add this line to your application's Gemfile:
gem 'memphis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install memphis
Usage
require 'memphis'
Memphis.configure do |config|
config.api_key = ECHONEST_API_KEY
end
# Artist Search
memphis_artist = Memphis::Artist.new
# Search using The Echo Nest ID for Radiohead
search_result = memphis_artist.search "ARH6W4X1187B99274F"
# Show providers includeding in results
search_result.providers
=> ["7digital", "deezer", "echonest", "facebook", "jambase", "musicbrainz", "playme", "rdio", "rhapsody", "seat_geek", "song_meanings", "songkick", "spotify", "twitter", "who_sampled"]
# Show results
search_result.7digital # "304"
search_result.deezer # "399"
search_result.echonest # "Radiohead"
search_result.facebook # "6979332244"
search_result.jambase # "8317"
search_result.musicbrainz # "a74b1b7f-71a5-4011-9441-d0b5e4122711"
search_result.playme # "1307"
search_result.rhapsody # "Art.4817"
search_result.rdio # "r91318"
search_result.seat_geek # "2570"
search_result.songkick # "253846"
search_result.song_meanings # "200"
search_result.spotify # "4Z8W4fKeB5YxbusRsdQVPb"
search_result.twitter # "radiohead"
search_result.who_sampled # "3309"
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request