lib/easypost.rb in easypost-1.0.6 vs lib/easypost.rb in easypost-1.0.7
- old
+ new
@@ -39,17 +39,19 @@
def self.get(url, params={})
params = {:userpwd => @@api_key, :params => params}
@response = Typhoeus::Request.get(url, params)
puts "EasyPost Response Body: "
puts @response.body
+ puts "End of 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 Body: "
puts @response.body
+ puts "End of Body"
return EasyPost.symbolize_keys_recursive(JSON.parse(@response.body))
end
end