getCapitalLeagues

suspend fun getCapitalLeagues(pagination: PaginationQuery = PaginationQuery()): Deferred<SimpleLeagueList>

Retrieves a list of capital leagues.

Return

A Deferred object representing the list of capital leagues.

Parameters

pagination

An optional PaginationQuery object for customizing the pagination of the results.

Throws

If the API is in maintenance.

If the API returns an unexpected gateway exception.