Client Library Api
Endpoints for retrieving information about, and managing, tracks and albums that the current user has saved in their “Your Music” library.
Constructors
ClientLibraryApi
Link copied to clipboard
Functions
add
Link copied to clipboard
addRestAction
Link copied to clipboard
fun addRestAction(type: LibraryType, vararg ids: String): SpotifyRestAction<Unit>
Content copied to clipboard
Save one or more of LibraryType to the current user’s ‘Your Music’ library.
fun addRestAction(type: LibraryType, id: String): SpotifyRestAction<Unit>
Content copied to clipboard
Save one of LibraryType to the current user’s ‘Your Music’ library.
contains
Link copied to clipboard
suspend fun contains(type: LibraryType, vararg ids: String): List<Boolean>
Content copied to clipboard
Check if one or more of LibraryType is already saved in the current Spotify user’s ‘Your Music’ library.
Check if the LibraryType with id id is already saved in the current Spotify user’s ‘Your Music’ library.
containsRestAction
Link copied to clipboard
fun containsRestAction(type: LibraryType, vararg ids: String): SpotifyRestAction<List<Boolean>>
Content copied to clipboard
Check if one or more of LibraryType is already saved in the current Spotify user’s ‘Your Music’ library.
fun containsRestAction(type: LibraryType, id: String): SpotifyRestAction<Boolean>
Content copied to clipboard
Check if the LibraryType with id id is already saved in the current Spotify user’s ‘Your Music’ library.
getSavedAlbums
Link copied to clipboard
suspend fun getSavedAlbums(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SavedAlbum>
Content copied to clipboard
getSavedAlbumsRestAction
Link copied to clipboard
fun getSavedAlbumsRestAction(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): SpotifyRestAction<PagingObject<SavedAlbum>>
Content copied to clipboard
getSavedEpisodes
Link copied to clipboard
suspend fun getSavedEpisodes(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SavedEpisode>
Content copied to clipboard
getSavedEpisodesRestAction
Link copied to clipboard
suspend fun getSavedEpisodesRestAction(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): SpotifyRestAction<PagingObject<SavedEpisode>>
Content copied to clipboard
getSavedShows
Link copied to clipboard
suspend fun getSavedShows(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): PagingObject<SavedShow>
Content copied to clipboard
getSavedShowsRestAction
Link copied to clipboard
fun getSavedShowsRestAction(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): SpotifyRestAction<PagingObject<SavedShow>>
Content copied to clipboard
getSavedTracks
Link copied to clipboard
suspend fun getSavedTracks(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SavedTrack>
Content copied to clipboard
getSavedTracksRestAction
Link copied to clipboard
fun getSavedTracksRestAction(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): SpotifyRestAction<PagingObject<SavedTrack>>
Content copied to clipboard
remove
Link copied to clipboard
Remove one or more of the LibraryType (tracks or albums) from the current user’s ‘Your Music’ library.
removeRestAction
Link copied to clipboard
fun removeRestAction(type: LibraryType, vararg ids: String): SpotifyRestAction<Unit>
Content copied to clipboard
Remove one or more of the LibraryType (tracks or albums) from the current user’s ‘Your Music’ library.
fun removeRestAction(type: LibraryType, id: String): SpotifyRestAction<Unit>
Content copied to clipboard
Remove one of LibraryType (track or album) from the current user’s ‘Your Music’ library.
Properties
Sources
common source
Link copied to clipboard