Created
September 29, 2015 21:01
-
-
Save kenmazaika/18b15957a48d087db7fc to your computer and use it in GitHub Desktop.
This file contains 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 'httparty' | |
resp = HTTParty.get("http://www.catfact.info//api/v1/facts.json?page=1&per_page=30") | |
resp['facts'].each do |item| | |
puts item.inspect | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment