lib/easypost.rb in easypost-1.0.5 vs lib/easypost.rb in easypost-1.0.6
- old
+ new
@@ -37,19 +37,19 @@
end
def self.get(url, params={})
params = {:userpwd => @@api_key, :params => params}
@response = Typhoeus::Request.get(url, params)
- puts "EasyPost Response: "
- puts @response
+ puts "EasyPost Response Body: "
+ puts @response.body
return EasyPost.symbolize_keys_recursive(JSON.parse(@response.body))
end
def self.post(url, params={})
params = {:userpwd => @@api_key, :params => params}
@response = Typhoeus::Request.post(url, params)
- puts "EasyPost Response: "
- puts @response
+ puts "EasyPost Response Body: "
+ puts @response.body
return EasyPost.symbolize_keys_recursive(JSON.parse(@response.body))
end
end