lib/sportradar/api/content.rb in sportradar-api-0.1.19 vs lib/sportradar/api/content.rb in sportradar-api-0.1.21

- old
+ new

@@ -25,10 +25,14 @@ def request_url(path) "/content-#{sport}-#{access_level}#{version}/#{path}" end def api_key - Sportradar::Api.api_key_params("content_#{sport}") + if access_level == 'p' + Sportradar::Api.api_key_params("content_#{sport}", "production") + else + Sportradar::Api.api_key_params("content_#{sport}") + end end def provider 'tsx' end