examples/basic.rb in alexvollmer-httparty-0.3.1 vs examples/basic.rb in alexvollmer-httparty-0.4.3
- old
+ new
@@ -2,10 +2,10 @@
require File.join(dir, 'httparty')
require 'pp'
# You can also use post, put, delete in the same fashion
response = HTTParty.get('http://twitter.com/statuses/public_timeline.json')
-puts response.body, response.code, response.headers.inspect
+puts response.body, response.code, response.message, response.headers.inspect
response.each do |item|
puts item['user']['screen_name']
-end
\ No newline at end of file
+end