Playlist Api
Playlist API interface provides methods using which one can get get information about the playlists from the Spotify API.
Each API returns ApiResponse.
Functions
Link copied to clipboard
abstract suspend fun getFeaturedPlaylists(locale: String, limit: Int, offset: Int): ApiResponse<FeaturedPlaylistsResponse, ErrorBody>
Get featured playlists API returns the current featured playlists on Spotify.
Link copied to clipboard
abstract suspend fun getPlaylist(id: String, market: String?, fields: List<String>?, additionalTypes: List<String>): ApiResponse<PlaylistInfo, ErrorBody>
Get playlist API returns the information about the playlist.
Link copied to clipboard
abstract suspend fun getPlaylistTracks(id: String, market: String?, fields: List<String>?, additionalTypes: List<String>, limit: Int, offset: Int): ApiResponse<PlaylistTracksResponse, ErrorBody>
Get playlist tracks API returns all the tracks for the current playlist.