Created
May 31, 2015 23:02
-
-
Save jerzygangi/352736500f45db383142 to your computer and use it in GitHub Desktop.
How to get JSON with Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "json" | |
require "net/http" | |
response = Net::HTTP.get_response(URI.parse("https://api.bitcoinaverage.com/exchanges/USD")) | |
puts response.body | |
puts JSON.parse(response.body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment