lib/sportradar/api/request.rb in sportradar-api-0.9.24 vs lib/sportradar/api/request.rb in sportradar-api-0.9.25
- old
+ new
@@ -7,9 +7,10 @@
attr_reader :url, :headers, :timeout, :api_key
def get(path, options={})
base_setup(path, options)
begin
+ # puts url + "?api_key=#{api_key[:api_key]}" # uncomment for debugging
response = self.class.get(url, headers: headers, query: options.merge(api_key), timeout: timeout)
rescue Net::ReadTimeout, Net::OpenTimeout
raise Sportradar::Api::Error::Timeout
rescue EOFError
raise Sportradar::Api::Error::NoData