module Api::SportEventInformation
Public Instance Methods
categories(sport_id)
click to toggle source
All available categories for a sport
# File lib/betradar/api/sport_event_information.rb, line 17 def categories(sport_id) get("sports/en/sports/sr:sport:#{sport_id}/categories.xml") end
event_info(event_id, event_type = 'sr:match')
click to toggle source
Information about an ongoing sport event Detailed information (including event timeline) for a sport event. Prematch, Live or Post-match. Prematch info is very brief . Postmatch the results are there
# File lib/betradar/api/sport_event_information.rb, line 12 def event_info(event_id, event_type = 'sr:match') get("sports/en/sport_events/#{event_type}:#{event_id}/timeline.xml") end
sport_tournaments(sport_id)
click to toggle source
All available tournaments for a sport
# File lib/betradar/api/sport_event_information.rb, line 22 def sport_tournaments(sport_id) get("sports/en/sports/sr:sport:#{sport_id}/tournaments.xml") end
sports()
click to toggle source
All available sports
# File lib/betradar/api/sport_event_information.rb, line 27 def sports get('sports/en/sports.xml') end
summary(event_id, event_type = 'sr:match')
click to toggle source
Summary information about a sport event
# File lib/betradar/api/sport_event_information.rb, line 4 def summary(event_id, event_type = 'sr:match') get("sports/en/sport_events/#{event_type}:#{event_id}/summary.xml") end
tournament_season(id, type = 'sr:tournament')
click to toggle source
All available seasons for tournament
# File lib/betradar/api/sport_event_information.rb, line 42 def tournament_season(id, type = 'sr:tournament') get("sports/en/tournaments/#{type}:#{id}/seasons.xml") end
tournaments()
click to toggle source
All available tournaments for all sports
# File lib/betradar/api/sport_event_information.rb, line 32 def tournaments get('sports/en/tournaments.xml') end
tournaments_info(tournament_id, tournament_type = 'sr:tournament')
click to toggle source
Basic information about a tournament (name, start/end date, list of competitors)
# File lib/betradar/api/sport_event_information.rb, line 37 def tournaments_info(tournament_id, tournament_type = 'sr:tournament') get("sports/en/tournaments/#{tournament_type}:#{tournament_id}/info.xml") end