easypost 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/easypost.rb +4 -0
- metadata +1 -1
data/lib/easypost.rb
CHANGED
@@ -39,12 +39,16 @@ module EasyPost
|
|
39
39
|
def self.get(url, params={})
|
40
40
|
params = {:userpwd => @@api_key, :params => params}
|
41
41
|
@response = Typhoeus::Request.get(url, params)
|
42
|
+
puts "EasyPost Response: "
|
43
|
+
puts @response
|
42
44
|
return EasyPost.symbolize_keys_recursive(JSON.parse(@response.body))
|
43
45
|
end
|
44
46
|
|
45
47
|
def self.post(url, params={})
|
46
48
|
params = {:userpwd => @@api_key, :params => params}
|
47
49
|
@response = Typhoeus::Request.post(url, params)
|
50
|
+
puts "EasyPost Response: "
|
51
|
+
puts @response
|
48
52
|
return EasyPost.symbolize_keys_recursive(JSON.parse(@response.body))
|
49
53
|
end
|
50
54
|
|