BaseSpotifyApi

abstract class BaseSpotifyApi(client: HttpClient = SpotifyHttpClientFactory.create(), tokenProvider: TokenProvider = TokenHolder)

Base class for Spotify Web API (api.spotify.com/v1) domain API classes.

Provides a shared HttpClient and TokenProvider, and a spotifyAuth helper that sets the Authorization: Bearer header and Accept: application/json on every request.

Note: AuthorizationApis targets accounts.spotify.com and does not extend this class.

Inheritors

Constructors

Link copied to clipboard
constructor(client: HttpClient = SpotifyHttpClientFactory.create(), tokenProvider: TokenProvider = TokenHolder)