get League
suspend fun getLeague(leagueId: String, pagination: PaginationQuery = PaginationQuery()): Deferred<League>
Retrieves detailed information about a specific league based on the provided leagueId.
Return
A Deferred object representing detailed information about the specified league.
Parameters
league Id
The ID of the league for which to retrieve the information.
pagination
An optional PaginationQuery object for customizing the pagination of the results.
Throws
If the API is in maintenance.
If the requested league is not found.
If the API returns an unexpected gateway exception.