EpisodesApis

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

Episode domain API for Spotify Web API.

Covers episode metadata and the current user's saved podcast episodes.

Constructors

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

Functions

Link copied to clipboard

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

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

Gets a Spotify episode by episode ID.

Link copied to clipboard

Gets multiple Spotify episodes by their IDs.

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

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

Link copied to clipboard

Removes episodes from the current user's Your Library.

Link copied to clipboard

Saves episodes to the current user's Your Library.