Skip to content

Commit

Permalink
Added example of how to use HTTParty.get. Fixed erroring examples/del…
Browse files Browse the repository at this point in the history
…icious.rb. Updated History.
  • Loading branch information
jnunemaker committed Dec 5, 2008
1 parent e404820 commit ec274f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion History.txt
@@ -1,7 +1,8 @@
== 0.1.8 2008-11-30
* 1 major enhancement
* 2 major enhancements
* Moved base_uri normalization into request class and out of httparty module, fixing
the problem where base_uri was not always being normalized.
* Stupid simple support for HTTParty.get/post/put/delete. (jqr)

== 0.1.7 2008-11-30
* 1 major enhancement
Expand Down
6 changes: 6 additions & 0 deletions examples/basic.rb
@@ -0,0 +1,6 @@
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'httparty')
require 'pp'

# You can also use post, put, delete in the same fashion
pp HTTParty.get('http://twitter.com/statuses/public_timeline.json')
1 change: 0 additions & 1 deletion examples/delicious.rb
Expand Up @@ -33,5 +33,4 @@ def recent(options={})

delicious = Delicious.new(config['username'], config['password'])
pp delicious.posts(:query => {:tag => 'ruby'})
pp delicious.recent

0 comments on commit ec274f2

Please sign in to comment.