Project

memphis

0.0
No commit activity in last 3 years
No release in over 3 years
Use The Echo Nest's Rosetta Stone project to look up IDs for various other services.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0.9.12
~> 0.2.2
>= 0
~> 2.14.0

Runtime

 Project Readme

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request