getPlaylist

abstract suspend fun getPlaylist(id: String, market: String? = null, fields: List<String>? = null, additionalTypes: List<String> = listOf("track")): SpotifyApiResponse<Playlist, ErrorBody>(source)

Get playlist API returns information about the current playlist.

See the Spotify doc.

Return

Playlist when success and ErrorBody when error.

Parameters

id
market
fields
additionalTypes