Ejemplo n.º 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)
    ...
Ejemplo n.º 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)
    ...
Ejemplo n.º 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)
    ...
Ejemplo n.º 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)
    ...
Ejemplo n.º 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)
    ...
Ejemplo n.º 6
0
def allSports():
    """
    Get all sports provided by the API.
    """
    return make_request(TSD.ALL_SPORTS)
    ...
Ejemplo n.º 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)
    ...
Ejemplo n.º 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)
    ...
Ejemplo n.º 9
0
def allCountries():
    """
    Get all countries information.
    """
    return make_request(TSD.ALL_COUNTRIES)
    ...
Ejemplo n.º 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)
    ...