"""
All Teams API Interactions on the free tier.
Get teams for League.
Get team Info by ID.
"""
from __future__ import absolute_import
import thesportsdb.settings as TSD
from thesportsdb.requests import make_request
[docs]def leagueTeams(league_id: str):
"""
Get all teams for the league identified by `league_id`
"""
return make_request(TSD.LEAGUE_TEAMS, id=league_id)
...
[docs]def teamInfo(team_id: str):
"""
Get the information for this team identified by the `team_id`
"""
return make_request(TSD.TEAM, id=team_id)
...