ChaptersApis

class ChaptersApis(client: HttpClient = SpotifyHttpClientFactory.create(), tokenProvider: TokenProvider = TokenHolder) : BaseSpotifyApi

Chapter domain API for Spotify Web API.

Covers chapter retrieval and chapter batches for audiobook and podcast content.

Constructors

Link copied to clipboard
constructor(client: HttpClient = SpotifyHttpClientFactory.create(), tokenProvider: TokenProvider = TokenHolder)

Functions

Link copied to clipboard
suspend fun getChapter(id: String, market: CountryCode? = null): SpotifyApiResponse<Chapter>

Gets a Spotify chapter by chapter ID.

Link copied to clipboard

Gets multiple Spotify chapters by their IDs.