Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created January 10, 2011 06:56
Show Gist options
  • Save Sutto/772481 to your computer and use it in GitHub Desktop.
Save Sutto/772481 to your computer and use it in GitHub Desktop.
Simple JSON / XML etc for APIs using HTTParty and Awesome Print
#!/usr/bin/env ruby
require 'rubygems'
require 'httparty'
require 'awesome_print'
ap HTTParty.get(ARGV[0]).parsed_response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment