PlaylistApi

open class PlaylistApi(api: GenericSpotifyApi) : SpotifyEndpoint

Endpoints for retrieving information about a user’s playlists

Api Reference

Constructors

PlaylistApi
Link copied to clipboard
common
fun PlaylistApi(api: GenericSpotifyApi)

Functions

getPlaylist
Link copied to clipboard
common
suspend fun getPlaylist(playlist: String, market: Market? = null): Playlist?
Get a playlist owned by a Spotify user.
getPlaylistCovers
Link copied to clipboard
common
suspend fun getPlaylistCovers(playlist: String): List<SpotifyImage>
Get the current image(s) associated with a specific playlist.
getPlaylistCoversRestAction
Link copied to clipboard
common
fun getPlaylistCoversRestAction(playlist: String): SpotifyRestAction<List<SpotifyImage>>
Get the current image(s) associated with a specific playlist.
getPlaylistRestAction
Link copied to clipboard
common
fun getPlaylistRestAction(playlist: String, market: Market? = null): SpotifyRestAction<Playlist?>
Get a playlist owned by a Spotify user.
getPlaylistTracks
Link copied to clipboard
common
suspend fun getPlaylistTracks(playlist: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<PlaylistTrack>
Get full details of the tracks of a playlist owned by a Spotify user.
getPlaylistTracksRestAction
Link copied to clipboard
common
fun getPlaylistTracksRestAction(playlist: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): SpotifyRestAction<PagingObject<PlaylistTrack>>
Get full details of the tracks of a playlist owned by a Spotify user.
getUserPlaylists
Link copied to clipboard
common
suspend fun getUserPlaylists(user: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): PagingObject<SimplePlaylist>
Get a list of the playlists owned or followed by a Spotify user.
getUserPlaylistsRestAction
Link copied to clipboard
common
fun getUserPlaylistsRestAction(user: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null): SpotifyRestAction<PagingObject<SimplePlaylist>>
Get a list of the playlists owned or followed by a Spotify user.

Properties

api
Link copied to clipboard
common
val api: GenericSpotifyApi
cache
Link copied to clipboard
common
val cache: SpotifyCache

Inheritors

ClientPlaylistApi
Link copied to clipboard

Sources

common source
Link copied to clipboard