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

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
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.
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.
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.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

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

(source)
Link copied to clipboard