forked from jnunemaker/httparty
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added example of how to use HTTParty.get. Fixed erroring examples/del…
…icious.rb. Updated History.
- Loading branch information
1 parent
e404820
commit ec274f2
Showing
3 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains 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