Skip to content

Instantly share code, notes, and snippets.

@alepez
Created July 20, 2013 19:04
Show Gist options
  • Save alepez/6046099 to your computer and use it in GitHub Desktop.
Save alepez/6046099 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'json'
album = JSON.parse(open('http://api.deezer.com/2.0/album/302127').read)
album["tracks"]["data"].map { |x| x["preview"] }.join(' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment