kns_endpoint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kns_endpoint.rb +5 -0
- metadata +2 -2
data/lib/kns_endpoint.rb
CHANGED
@@ -109,6 +109,11 @@ module Kynetx
|
|
109
109
|
resp, data = http.request(req, params.to_url_params)
|
110
110
|
@session = parse_cookie(resp, 'SESSION_ID')
|
111
111
|
|
112
|
+
puts 'Code = ' + resp.code if $PDS_DEBUG
|
113
|
+
puts 'Message = ' + resp.message if $PDS_DEBUG
|
114
|
+
resp.each {|key, val| puts key + ' = ' + val} if $PDS_DEBUG
|
115
|
+
|
116
|
+
|
112
117
|
raise "Unexpected response from KNS (HTTP Error: #{resp.code} - #{resp.message})" unless resp.code == '200'
|
113
118
|
begin
|
114
119
|
kns_json = JSON.parse(data)
|