Module: Echowrap::API::Artist
Constant Summary
Constants included from Utils
Utils::API_KEY_CANNOT_CALL_THIS_METHOD, Utils::INVALID_PARAMETER, Utils::MISSING_OR_INVALID_KEY, Utils::MISSING_PARAMETER, Utils::RATE_LIMIT_EXCEEDED, Utils::SUCCESS
Instance Method Summary collapse
-
#artist_biographies(options = {}) ⇒ Array<Echowrap::Biography>
Get a list of artist biographies.
-
#artist_blogs(options = {}) ⇒ Array<Echowrap::Blog>
Get a list of artist blogs.
-
#artist_extract(options = {}) ⇒ Array<Echowrap::artist>
Extract artist names from text.
-
#artist_familiarity(options = {}) ⇒ Echowrap::Familiarity
Get numerical estimation of how familiar an artist currently is to the world.
-
#artist_hotttnesss(options = {}) ⇒ Echowrap::Hotttnesss
Get numerical description of how hottt an artist currently is.
-
#artist_images(options = {}) ⇒ Array<Echowrap::Image>
Get a list of artist images.
-
#artist_list_genres(options = {}) ⇒ Array<Echowrap::Genre>
Get a list of the available genres for use with search and playlisting.
-
#artist_list_terms(options = {}) ⇒ Array<Echowrap::term>
Get a list of the available terms for use with search and playlisting.
-
#artist_news(options = {}) ⇒ Array<Echowrap::NewsArticle>
Get a list of news articles found on the web related to an artist.
-
#artist_profile(options = {}) ⇒ Echowrap::artist
Get basic information about an artist.
- #artist_reviews(options = {}) ⇒ Array<Echowrap::Review>
-
#artist_search(options = {}) ⇒ Array<Echowrap::artist>
Search for artists given different query types.
-
#artist_similar(options = {}) ⇒ Array<Echowrap::artist>
Return similar artists given one or more artists for comparison.
- #artist_songs(options = {}) ⇒ Array<Echowrap::Song>
-
#artist_suggest(options = {}) ⇒ Array<Echowrap::artist>
Suggest artists based upon partial names.
-
#artist_terms(options = {}) ⇒ Array<Echowrap::Term>
Get a list of most descriptive terms for an artist.
-
#artist_top_hottt(options = {}) ⇒ Array<Echowrap::Artist>
Return a list of the top hottt artists.
-
#artist_top_terms(options = {}) ⇒ Array<Echowrap::Term>
Returns a list of the overall top terms.
-
#artist_twitter(options = {}) ⇒ Array<Echowrap::Term>
Gets the twitter handle for an artist.
-
#artist_urls(options = {}) ⇒ Array<Echowrap::Urls>
Get links to the artist’s official site, MusicBrainz site, MySpace site, Wikipedia article, Amazon list, and iTunes page.
-
#artist_video(options = {}) ⇒ Array<Echowrap::Video>
Get a list of video documents found on the web related to an artist.
Instance Method Details
#artist_biographies(options = {}) ⇒ Array<Echowrap::Biography>
Get a list of artist biographies.
22 23 24 |
# File 'lib/echowrap/api/artist.rb', line 22 def artist_biographies(={}) objects_from_response(Echowrap::Biography, :get, '/api/v4/artist/biographies', :biographies, ) end |
#artist_blogs(options = {}) ⇒ Array<Echowrap::Blog>
Get a list of artist blogs.
40 41 42 |
# File 'lib/echowrap/api/artist.rb', line 40 def artist_blogs(={}) objects_from_response(Echowrap::Blog, :get, '/api/v4/artist/blogs', :blogs, ) end |
#artist_extract(options = {}) ⇒ Array<Echowrap::artist>
Extract artist names from text.
62 63 64 |
# File 'lib/echowrap/api/artist.rb', line 62 def artist_extract(={}) objects_from_response(Echowrap::Artist, :get, '/api/v4/artist/extract', :artists, ) end |
#artist_familiarity(options = {}) ⇒ Echowrap::Familiarity
Get numerical estimation of how familiar an artist currently is to the world.
76 77 78 |
# File 'lib/echowrap/api/artist.rb', line 76 def artist_familiarity(={}) object_from_response(Echowrap::Familiarity, :get, '/api/v4/artist/familiarity', :artist, ) end |
#artist_hotttnesss(options = {}) ⇒ Echowrap::Hotttnesss
Get numerical description of how hottt an artist currently is.
91 92 93 |
# File 'lib/echowrap/api/artist.rb', line 91 def artist_hotttnesss(={}) object_from_response(Echowrap::Hotttnesss, :get, '/api/v4/artist/hotttnesss', :artist, ) end |
#artist_images(options = {}) ⇒ Array<Echowrap::Image>
Get a list of artist images.
110 111 112 |
# File 'lib/echowrap/api/artist.rb', line 110 def artist_images(={}) objects_from_response(Echowrap::Image, :get, '/api/v4/artist/images', :images, ) end |
#artist_list_genres(options = {}) ⇒ Array<Echowrap::Genre>
Get a list of the available genres for use with search and playlisting. This method returns a list of genres suitable for use in the artist/search call when searching by description and for the creation of genre-radio playlists. The returned list of genres is inclusive of all supported genres.
125 126 127 |
# File 'lib/echowrap/api/artist.rb', line 125 def artist_list_genres(={}) objects_from_response(Echowrap::Genre, :get, '/api/v4/artist/list_genres', :genres, ) end |
#artist_list_terms(options = {}) ⇒ Array<Echowrap::term>
Get a list of the available terms for use with search and playlisting. This method returns a list of genres suitable for use in the artist/search call when searching by description and for the creation of genre-radio playlists. The returned list of genres is inclusive of all supported genres.
141 142 143 |
# File 'lib/echowrap/api/artist.rb', line 141 def artist_list_terms(={}) objects_from_response(Echowrap::Term, :get, '/api/v4/artist/list_terms', :terms, ) end |
#artist_news(options = {}) ⇒ Array<Echowrap::NewsArticle>
Get a list of news articles found on the web related to an artist.
159 160 161 |
# File 'lib/echowrap/api/artist.rb', line 159 def artist_news(={}) objects_from_response(Echowrap::NewsArticle, :get, '/api/v4/artist/news', :news, ) end |
#artist_profile(options = {}) ⇒ Echowrap::artist
Get basic information about an artist.
176 177 178 |
# File 'lib/echowrap/api/artist.rb', line 176 def artist_profile(={}) object_from_response(Echowrap::Artist, :get, '/api/v4/artist/profile', :artist, ) end |
#artist_reviews(options = {}) ⇒ Array<Echowrap::Review>
226 227 228 |
# File 'lib/echowrap/api/artist.rb', line 226 def artist_reviews(={}) objects_from_response(Echowrap::Review, :get, '/api/v4/artist/reviews', :reviews, ) end |
#artist_search(options = {}) ⇒ Array<Echowrap::artist>
Search for artists given different query types
210 211 212 |
# File 'lib/echowrap/api/artist.rb', line 210 def artist_search(={}) objects_from_response(Echowrap::Artist, :get, '/api/v4/artist/search', :artists, ) end |
#artist_similar(options = {}) ⇒ Array<Echowrap::artist>
Return similar artists given one or more artists for comparison. The Echo Nest provides up-to-the-minute artist similarity and recommendations from their real-time musical and cultural analysis of what people are saying across the Internet and what the music sounds like.
254 255 256 |
# File 'lib/echowrap/api/artist.rb', line 254 def artist_similar(={}) objects_from_response(Echowrap::Artist, :get, '/api/v4/artist/similar', :artists, ) end |
#artist_songs(options = {}) ⇒ Array<Echowrap::Song>
270 271 272 |
# File 'lib/echowrap/api/artist.rb', line 270 def artist_songs(={}) objects_from_response(Echowrap::Song, :get, '/api/v4/artist/songs', :songs, ) end |
#artist_suggest(options = {}) ⇒ Array<Echowrap::artist>
Suggest artists based upon partial names. This method will return a list of potential artist matches based upon a query string. The method returns the most familiar best matching artist for the query.
286 287 288 |
# File 'lib/echowrap/api/artist.rb', line 286 def artist_suggest(={}) objects_from_response(Echowrap::Artist, :get, '/api/v4/artist/suggest', :artists, ) end |
#artist_terms(options = {}) ⇒ Array<Echowrap::Term>
Get a list of most descriptive terms for an artist
302 303 304 |
# File 'lib/echowrap/api/artist.rb', line 302 def artist_terms(={}) objects_from_response(Echowrap::Term, :get, '/api/v4/artist/terms', :terms, ) end |
#artist_top_hottt(options = {}) ⇒ Array<Echowrap::Artist>
Return a list of the top hottt artists.
320 321 322 |
# File 'lib/echowrap/api/artist.rb', line 320 def artist_top_hottt(={}) objects_from_response(Echowrap::Artist, :get, '/api/v4/artist/top_hottt', :artists, ) end |
#artist_top_terms(options = {}) ⇒ Array<Echowrap::Term>
Returns a list of the overall top terms.
334 335 336 |
# File 'lib/echowrap/api/artist.rb', line 334 def artist_top_terms(={}) objects_from_response(Echowrap::Term, :get, '/api/v4/artist/top_terms', :terms, ) end |
#artist_twitter(options = {}) ⇒ Array<Echowrap::Term>
Gets the twitter handle for an artist
349 350 351 |
# File 'lib/echowrap/api/artist.rb', line 349 def artist_twitter(={}) object_from_response(Echowrap::Artist, :get, '/api/v4/artist/twitter', :artist, ) end |
#artist_urls(options = {}) ⇒ Array<Echowrap::Urls>
Get links to the artist’s official site, MusicBrainz site, MySpace site, Wikipedia article, Amazon list, and iTunes page.
364 365 366 |
# File 'lib/echowrap/api/artist.rb', line 364 def artist_urls(={}) object_from_response(Echowrap::Urls, :get, '/api/v4/artist/urls', :urls, ) end |
#artist_video(options = {}) ⇒ Array<Echowrap::Video>
Get a list of video documents found on the web related to an artist.
381 382 383 |
# File 'lib/echowrap/api/artist.rb', line 381 def artist_video(={}) objects_from_response(Echowrap::Video, :get, '/api/v4/artist/video', :video, ) end |