示例#1
0
def leagueSeasonEvents(league_id: str, season: str):
    """
    Get the  Events for this league identified by the `league_id` for the
    `season` specified.
    """
    return make_request(TSD.LEAGUE_SEASON_EVENTS, l=league_id, s=season)
    ...
示例#2
0
def allLeagues():
    """
    Retrieve all leagues for all sports provided by the API.
    Returns a dict object with the json data obtained.
    """
    return make_request(TSD.ALL_LEAGUES)
    ...
示例#3
0
def eventInfo(event_id: str):
    """
    Get the Event Details for this event specified by the `event_id`
    """
    return make_request(TSD.EVENT, id=event_id)
    ...
示例#4
0
def eventResult(event_id: str):
    """
    Get the Event Results for this event specified by the `event_id`
    """
    return make_request(TSD.EVENT_RESULT, id=event_id)
    ...
示例#5
0
def lastLeagueEvents(league_id: str):
    """
    Get the last 15 Events for this league identified by the `league_id`
    """
    return make_request(TSD.LEAGUE_LAST_EVENTS, id=league_id)
    ...
示例#6
0
def allSports():
    """
    Get all sports provided by the API.
    """
    return make_request(TSD.ALL_SPORTS)
    ...
示例#7
0
def teamInfo(team_id: str):
    """
    Get the information for this team identified by the `team_id`
    """
    return make_request(TSD.TEAM, id=team_id)
    ...
示例#8
0
def leagueTeams(league_id: str):
    """
    Get all teams for the league identified by `league_id`
    """
    return make_request(TSD.LEAGUE_TEAMS, id=league_id)
    ...
示例#9
0
def allCountries():
    """
    Get all countries information.
    """
    return make_request(TSD.ALL_COUNTRIES)
    ...
示例#10
0
def leagueSeasonTable(league_id: str, season: str):
    """
    Retrieve the League's Table Standing for the Particular Season Specified.
    """
    return make_request(TSD.LEAGUE_SEASON_TABLE, l=league_id, s=season)
    ...