LibraryApis

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

Library domain API for Spotify Web API.

Covers save/remove/check operations in the current user's Your Library collection.

Constructors

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

Functions

Link copied to clipboard

Checks whether items are saved in the current user's library.

Link copied to clipboard
suspend fun getUsersSavedLibrary(market: CountryCode? = null, pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<UsersSavedLibrary>

Gets the current user's saved library entries.

Link copied to clipboard

Removes items from the current user's library by URI.

Link copied to clipboard

Saves items to the current user's library by URI.