github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

mattt / yahoo-music

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 15
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: yahoo-music and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ruby Library for the Yahoo! Music API — Read more

  cancel

http://developer.yahoo.com/music/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Removed RubyForge clutter and replaced with gemspec 
Mattt Thompson (author)
Thu Nov 13 03:28:32 -0800 2008
commit  fd3f5801691f2f08c01ef1699c237b8221709e94
tree    c31d2dc637bb445e6fb36fcf371cd29a4a0ffff3
parent  c1849b7e8024a4629ee218d18a38688cab90fd1e
yahoo-music /
name age
history
message
file README Loading commit data...
directory lib/
directory test/
file yahoo-music.gemspec
README
= yahoo-music

A Ruby wrapper for the Yahoo! Music APIs.

== Example Usage

=== Artists:

  require 'yahoo-music'
  include Yahoo::Music
  Yahoo::Music.app_id = [Your App ID Here]
  
  artist = Artist.new("Ben Folds Five")
  
  puts artist.name
  puts artist.website
  
  puts '*' * 40
  puts
  
  puts 'Releases'
  artist.releases.each do |release|
    puts "\t- %s" % release.title
  end
  
=== Releases & Tracks:
  
  require 'yahoo-music'
  include Yahoo::Music
  Yahoo::Music.app_id = [Your App ID Here]
  
  album = Album.search("The White Album").first 
  
  puts album.title
  puts album.artist
  puts "Release Date:" + album.released_on.strftime("%m/%d/%Y")
  
  puts '*' * 40
  puts
  
  puts 'Tracks'
  artist.tracks.each_with_index do |track, i|
    puts "\t%d %s \t%2d:%2d" % [i, track.title, track.duration / 60, track.duration % 60]
  end


== REQUIREMENTS:

To use this library, you must have a valid Yahoo! App ID. 
You can get one at http://developer.yahoo.com/wsregapp/

Additionally, yahoo-music has the following gem dependencies:

* Hpricot >= 0.6
* ActiveSupport >= 2.1.0
* FlexMock >= 0.8.2

== INSTALL:

* sudo gem install yahoo-music

== LICENSE:

(The MIT License)

Copyright (c) 2008 Mattt Thompson

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server