Created
May 26, 2015 17:59
-
-
Save kenmazaika/ebe610d6269ce758c57d to your computer and use it in GitHub Desktop.
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 'httparty' | |
| resp = HTTParty.get("http://www.catfact.info/api/v1/facts.json", :query => {:page=>2, :per_page=>3}) | |
| puts resp.inspect | |
| puts resp.code | |
| puts "-----" | |
| resp['facts'].each do |f| | |
| puts f['details'] | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment