AlbumsApis

class AlbumsApis(client: HttpClient = HttpClient(CIO) { install(ContentNegotiation) { json() } })

Album domain API for Spotify Web API.

Covers album lookup, album tracks, and the current user's saved albums in Your Library.

Constructors

Link copied to clipboard
constructor(client: HttpClient = HttpClient(CIO) { install(ContentNegotiation) { json() } })

Functions

Link copied to clipboard

Checks whether albums are saved in the current user's Your Library.

Link copied to clipboard
suspend fun getAlbum(id: String, market: CountryCode? = null): SpotifyApiResponse<Album>

Gets a Spotify album by album ID.

Link copied to clipboard
suspend fun getAlbumTracks(id: String, market: CountryCode? = null, pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<AlbumTracks>

Gets tracks from a Spotify album.

Link copied to clipboard
suspend fun getNewReleases(pagingOptions: PagingOptions = PagingOptions(), country: CountryCode? = null): SpotifyApiResponse<NewRelease>

Gets Spotify new-release albums.

Link copied to clipboard
suspend fun getSeveralAlbums(ids: List<String>, market: CountryCode? = null): SpotifyApiResponse<Albums>

Gets multiple Spotify albums by their IDs.

Link copied to clipboard
suspend fun getUsersSavedAlbums(market: CountryCode? = null, pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<UsersSavedAlbums>

Gets the current user's saved albums from Your Library.

Link copied to clipboard

Removes albums from the current user's Your Library.

Link copied to clipboard

Saves albums to the current user's Your Library.