lib/sportradar/api/request.rb in sportradar-api-0.19.6 vs lib/sportradar/api/request.rb in sportradar-api-0.20.0.pre
- old
+ new
@@ -54,9 +54,10 @@
puts url + "?api_key=#{api_key[:api_key]}" # uncomment for debugging
puts
puts response.inspect
Sportradar::Api::Error.new(response.code, response.message, response)
else
+ File.write("response.json", JSON.pretty_generate(response.to_h)) if ENV['SPORTRADAR_LOG']
response
end
end
def get_request_info(url)