lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.18.1 vs lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.19.0

- old
+ new

@@ -20,28 +20,28 @@ def default_season 'reg' end def default_access_level if (ENV['SPORTRADAR_ENV'] || ENV['SPORTRADAR_ENV_NFL'] || ENV['RACK_ENV'] || ENV['RAILS_ENV']) == 'production' - 'o' + 'production' else - 'ot' + 'trial' end end private def content_format 'json' end def request_url(path) - "/nfl-#{access_level}#{version}/#{path}" + "/nfl/official/#{access_level}/v#{version}/en/#{path}" end def api_key - if !['ot', 'sim'].include?(access_level) || (access_level == 'sim' && default_access_level == 'o') + if !['trial', 'sim'].include?(access_level) || (access_level == 'sim' && default_access_level == 'production') ::Sportradar::Api.api_key_params('nfl', 'production') else ::Sportradar::Api.api_key_params('nfl') end end @@ -49,10 +49,10 @@ def version ::Sportradar::Api.version('nfl') end def allowed_access_levels - %w[rt o p s b t ot sim] + %w[production trial sim] end def allowed_seasons ["pre", "reg", "pst"] end