getCapitalLeague

suspend fun getCapitalLeague(leagueId: String, pagination: PaginationQuery = PaginationQuery()): Deferred<SimpleLeague>

Retrieves detailed information about a specific capital league based on the provided leagueId.

Return

A Deferred object representing detailed information about the specified capital league.

Parameters

leagueId

The ID of the capital 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 capital league is not found or has no available information.

If the API returns an unexpected gateway exception.