getMatches

@GET(value = "games")
abstract suspend fun getMatches(@Query(value = "dates[]") date: String): ApiResponseMatch

Retrieves match data for a specific date from the API.

This is a suspend function and should be called from a coroutine context. It fetches the list of matches scheduled or played on the provided date.

Return

ApiResponseMatch containing the list of matches and meta information.

Parameters

date

The date for which matches data is to be retrieved.

Throws

for any network or conversion errors.