Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created September 29, 2015 21:01
Show Gist options
  • Save kenmazaika/18b15957a48d087db7fc to your computer and use it in GitHub Desktop.
Save kenmazaika/18b15957a48d087db7fc to your computer and use it in GitHub Desktop.
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