1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Added example of how to use HTTParty.get. Fixed erroring examples/delicious.rb. Updated History.

This commit is contained in:
John Nunemaker 2008-12-05 16:42:38 -05:00
parent e4048206a6
commit ec274f26b0
3 changed files with 8 additions and 2 deletions

View file

@ -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

6
examples/basic.rb Normal file
View file

@ -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')

View file

@ -33,5 +33,4 @@ end
delicious = Delicious.new(config['username'], config['password'])
pp delicious.posts(:query => {:tag => 'ruby'})
pp delicious.recent