AudiobooksApis

class AudiobooksApis(client: HttpClient = HttpClient(CIO) { install(ContentNegotiation) { json() } })

Audiobook domain API for Spotify Web API.

Covers audiobook metadata, chapters, and the user's saved audiobooks in Your Library.

Constructors

Link copied to clipboard
constructor(client: HttpClient = HttpClient(CIO) { install(ContentNegotiation) { json() } })

Functions

Link copied to clipboard

Checks whether audiobooks are saved in the current user's Your Library.

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

Gets a Spotify audiobook by audiobook ID.

Link copied to clipboard
suspend fun getAudiobookChapters(id: String, market: CountryCode? = null, pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<AudiobookChapters>

Gets chapters for a Spotify audiobook.

Link copied to clipboard

Gets multiple Spotify audiobooks by their IDs.

Link copied to clipboard
suspend fun getUsersSavedAudiobooks(pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<UsersSavedAudiobooks>

Gets the current user's saved audiobooks from Your Library.

Link copied to clipboard

Removes audiobooks from the current user's Your Library.

Link copied to clipboard

Saves audiobooks to the current user's Your Library.