Client Playlist Api
Endpoints for retrieving information about a user’s playlists and for managing a user’s playlists.
Constructors
ClientPlaylistApi
Link copied to clipboard
Functions
addPlayablesToClientPlaylist
Link copied to clipboard
suspend fun addPlayablesToClientPlaylist(playlist: String, vararg playables: PlayableUri, position: Int? = null)
Content copied to clipboard
addPlayablesToClientPlaylistRestAction
Link copied to clipboard
fun addPlayablesToClientPlaylistRestAction(playlist: String, vararg playables: PlayableUri, position: Int? = null): SpotifyRestAction<Unit>
Content copied to clipboard
addPlayableToClientPlaylist
Link copied to clipboard
suspend fun addPlayableToClientPlaylist(playlist: String, playable: PlayableUri, position: Int? = null)
Content copied to clipboard
addPlayableToClientPlaylistRestAction
Link copied to clipboard
fun addPlayableToClientPlaylistRestAction(playlist: String, playable: PlayableUri, position: Int? = null): SpotifyRestAction<Unit>
Content copied to clipboard
changeClientPlaylistDetails
Link copied to clipboard
changeClientPlaylistDetailsRestAction
Link copied to clipboard
fun changeClientPlaylistDetailsRestAction(playlist: String, name: String? = null, public: Boolean? = null, collaborative: Boolean? = null, description: String? = null): SpotifyRestAction<Unit>
Content copied to clipboard
createClientPlaylist
Link copied to clipboard
createClientPlaylistRestAction
Link copied to clipboard
fun createClientPlaylistRestAction(name: String, description: String? = null, public: Boolean? = null, collaborative: Boolean? = null, user: String? = null): SpotifyRestAction<Playlist>
Content copied to clipboard
deleteClientPlaylist
Link copied to clipboard
deleteClientPlaylistRestAction
Link copied to clipboard
fun deleteClientPlaylistRestAction(playlist: String): SpotifyRestAction<String>
Content copied to clipboard
This method is equivalent to unfollowing a playlist with the given playlist.
getClientPlaylist
Link copied to clipboard
getClientPlaylistRestAction
Link copied to clipboard
fun getClientPlaylistRestAction(id: String): SpotifyRestAction<SimplePlaylist?>
Content copied to clipboard
getClientPlaylists
Link copied to clipboard
suspend fun getClientPlaylists(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): PagingObject<SimplePlaylist>
Content copied to clipboard
getClientPlaylistsRestAction
Link copied to clipboard
fun getClientPlaylistsRestAction(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): SpotifyRestAction<PagingObject<SimplePlaylist>>
Content copied to clipboard
getPlaylist
Link copied to clipboard
suspend fun getPlaylist(playlist: String, market: Market? = null): Playlist?
Content copied to clipboard
getPlaylistCovers
Link copied to clipboard
getPlaylistCoversRestAction
Link copied to clipboard
fun getPlaylistCoversRestAction(playlist: String): SpotifyRestAction<List<SpotifyImage>>
Content copied to clipboard
getPlaylistRestAction
Link copied to clipboard
fun getPlaylistRestAction(playlist: String, market: Market? = null): SpotifyRestAction<Playlist?>
Content copied to clipboard
getPlaylistTracks
Link copied to clipboard
suspend fun getPlaylistTracks(playlist: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<PlaylistTrack>
Content copied to clipboard
getPlaylistTracksRestAction
Link copied to clipboard
fun getPlaylistTracksRestAction(playlist: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): SpotifyRestAction<PagingObject<PlaylistTrack>>
Content copied to clipboard
getUserPlaylists
Link copied to clipboard
suspend fun getUserPlaylists(user: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): PagingObject<SimplePlaylist>
Content copied to clipboard
getUserPlaylistsRestAction
Link copied to clipboard
fun getUserPlaylistsRestAction(user: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): SpotifyRestAction<PagingObject<SimplePlaylist>>
Content copied to clipboard
removeAllClientPlaylistPlayables
Link copied to clipboard
removeAllClientPlaylistPlayablesRestAction
Link copied to clipboard
fun removeAllClientPlaylistPlayablesRestAction(playlist: String): SpotifyRestAction<Unit>
Content copied to clipboard
Remove all the playables in a playlistApi Reference
removePlayableFromClientPlaylist
Link copied to clipboard
suspend fun removePlayableFromClientPlaylist(playlist: String, playable: PlayableUri, snapshotId: String? = null): PlaylistSnapshot
Content copied to clipboard
suspend fun removePlayableFromClientPlaylist(playlist: String, playable: PlayableUri, positions: SpotifyPlayablePositions, snapshotId: String? = null): PlaylistSnapshot
Content copied to clipboard
removePlayableFromClientPlaylistRestAction
Link copied to clipboard
fun removePlayableFromClientPlaylistRestAction(playlist: String, playable: PlayableUri, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>
Content copied to clipboard
fun removePlayableFromClientPlaylistRestAction(playlist: String, playable: PlayableUri, positions: SpotifyPlayablePositions, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>
Content copied to clipboard
removePlayablesFromClientPlaylist
Link copied to clipboard
suspend fun removePlayablesFromClientPlaylist(playlist: String, vararg playables: PlayableUri, snapshotId: String? = null): PlaylistSnapshot
Content copied to clipboard
suspend fun removePlayablesFromClientPlaylist(playlist: String, vararg playables: Pair<PlayableUri, SpotifyPlayablePositions>, snapshotId: String? = null): PlaylistSnapshot
Content copied to clipboard
removePlayablesFromClientPlaylistRestAction
Link copied to clipboard
fun removePlayablesFromClientPlaylistRestAction(playlist: String, vararg playables: PlayableUri, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>
Content copied to clipboard
fun removePlayablesFromClientPlaylistRestAction(playlist: String, vararg playables: Pair<PlayableUri, SpotifyPlayablePositions>, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>
Content copied to clipboard
reorderClientPlaylistPlayables
Link copied to clipboard
suspend fun reorderClientPlaylistPlayables(playlist: String, reorderRangeStart: Int, reorderRangeLength: Int? = null, insertionPoint: Int, snapshotId: String? = null): PlaylistSnapshot
Content copied to clipboard
reorderClientPlaylistPlayablesRestAction
Link copied to clipboard
fun reorderClientPlaylistPlayablesRestAction(playlist: String, reorderRangeStart: Int, reorderRangeLength: Int? = null, insertionPoint: Int, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>
Content copied to clipboard
replaceClientPlaylistPlayables
Link copied to clipboard
suspend fun replaceClientPlaylistPlayables(playlist: String, vararg playables: PlayableUri)
Content copied to clipboard
replaceClientPlaylistPlayablesRestAction
Link copied to clipboard
fun replaceClientPlaylistPlayablesRestAction(playlist: String, vararg playables: PlayableUri): SpotifyRestAction<Unit>
Content copied to clipboard
setClientPlaylistPlayables
Link copied to clipboard
suspend fun setClientPlaylistPlayables(playlist: String, vararg playables: PlayableUri)
Content copied to clipboard
setClientPlaylistPlayablesRestAction
Link copied to clipboard
fun setClientPlaylistPlayablesRestAction(playlist: String, vararg playables: PlayableUri): SpotifyRestAction<Unit>
Content copied to clipboard
uploadClientPlaylistCover
Link copied to clipboard
suspend fun uploadClientPlaylistCover(playlist: String, imagePath: String? = null, imageFile: VfsFile? = null, image: BufferedImage? = null, imageData: String? = null, imageUrl: String? = null)
Content copied to clipboard
uploadClientPlaylistCoverRestAction
Link copied to clipboard
fun uploadClientPlaylistCoverRestAction(playlist: String, imagePath: String? = null, imageFile: VfsFile? = null, image: BufferedImage? = null, imageData: String? = null, imageUrl: String? = null): SpotifyRestAction<Unit>
Content copied to clipboard
Properties
Sources
common source
Link copied to clipboard