BrowseApi

internal interface BrowseApi(source)

Browse API interface provides methods using which one can browse for content from the Spotify API.

Each API returns ApiResponse.

Functions

Link copied to clipboard
abstract suspend fun getCategories(locale: String, limit: Int, offset: Int): ApiResponse<CategoriesResponse, ErrorBody>

Get categories API returns the available categories.

Link copied to clipboard
abstract suspend fun getGenres(): ApiResponse<Genres, ErrorBody>

Get genres API returns the available genres.