We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Rubygem
Description: Makes http fun! Also, makes consuming restful web services dead easy.
Clone URL: git://github.com/jnunemaker/httparty.git
Click here to lend your support to: httparty and make a donation at www.pledgie.com !
jnunemaker (author)
Fri Aug 22 18:57:38 -0700 2008
commit  df9957cfa569c4a15230f5b2cda0a5d8f1b3e727
tree    4e3cf7156565bdbea73de98e5f966fcddd40dd63
parent  42a023886c065b166090ce69193d447ea6325a64
httparty / examples / whoismyrep.rb
100644 9 lines (7 sloc) 0.235 kb
1
2
3
4
5
6
7
8
9
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'httparty')
require 'pp'
 
class Rep
  include HTTParty
end
 
puts Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544').inspect