SpotifyAppApiBuilder

class SpotifyAppApiBuilder(var credentials: SpotifyCredentials = SpotifyCredentials(), var authorization: SpotifyUserAuthorization = SpotifyUserAuthorization(), var options: SpotifyApiOptions = SpotifyApiOptions()) : ISpotifyAppApiBuilder(source)

SpotifyAppApi builder for api creation using client authorization

Constructors

Link copied to clipboard
constructor(credentials: SpotifyCredentials = SpotifyCredentials(), authorization: SpotifyUserAuthorization = SpotifyUserAuthorization(), options: SpotifyApiOptions = SpotifyApiOptions())

Properties

Link copied to clipboard

Allows you to authenticate a SpotifyClientApi with an authorization code or build SpotifyApi using a refresh token

Link copied to clipboard
open override var credentials: SpotifyCredentials

A block in which Spotify application credentials (accessible via the Spotify dashboard) should be put

Link copied to clipboard
open override var options: SpotifyApiOptions

Allows you to override default values for caching, token refresh, and logging

Functions

Link copied to clipboard

Allows you to authenticate a SpotifyClientApi with an authorization code or build SpotifyApi using a refresh token

Link copied to clipboard

Allows you to authenticate a SpotifyClientApi with an authorization code or build SpotifyApi using a refresh token

Link copied to clipboard
open suspend override fun build(enableDefaultTokenRefreshProducerIfNoneExists: Boolean): SpotifyAppApi

Build a public SpotifyAppApi using the provided credentials

Link copied to clipboard
open fun buildRestAction(enableDefaultTokenRefreshProducerIfNoneExists: Boolean = true): SpotifyRestAction<SpotifyAppApi>

Build the T by provided information

Link copied to clipboard

A block in which Spotify application credentials (accessible via the Spotify dashboard) should be put

Link copied to clipboard

Allows you to override default values for caching, token refresh, and logging