Spotify Implicit Grant Api
class SpotifyImplicitGrantApi(clientId: String?, token: Token, spotifyApiOptions: SpotifyApiOptions) : SpotifyClientApi
Content copied to clipboard
An API instance created through implicit grant flow, with access to private information managed through the scopes exposed in token. token is not refreshable and is only accessible for limited time.
Constructors
SpotifyImplicitGrantApi
Link copied to clipboard
fun SpotifyImplicitGrantApi(clientId: String?, token: Token, spotifyApiOptions: SpotifyApiOptions)
Content copied to clipboard
Functions
clearCache
Link copied to clipboard
fun clearCache()
Content copied to clipboard
getApiBuilder
Link copied to clipboard
getApiBuilderDsl
Link copied to clipboard
getAuthorizationUrl
Link copied to clipboard
fun getAuthorizationUrl(vararg scopes: SpotifyScope, state: String? = null): String
Content copied to clipboard
fun getAuthorizationUrl(vararg scopes: SpotifyScope, redirectUri: String, state: String? = null): String
Content copied to clipboard
getCache
Link copied to clipboard
getPkceAuthorizationUrl
Link copied to clipboard
fun getPkceAuthorizationUrl(vararg scopes: SpotifyScope, redirectUri: String, codeChallenge: String, state: String? = null): String
Content copied to clipboard
hasScope
Link copied to clipboard
hasScopes
Link copied to clipboard
suspend fun hasScopes(scope: SpotifyScope, vararg scopes: SpotifyScope): Boolean?
Content copied to clipboard
isTokenValid
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Tests whether the current token is actually valid.
refreshToken
Link copied to clipboard
updateToken
Link copied to clipboard
updateTokenWith
Link copied to clipboard
Properties
albums
Link copied to clipboard
Provides access to Spotify album endpoints
artists
Link copied to clipboard
Provides access to Spotify artist endpoints
browse
Link copied to clipboard
Provides access to Spotify browse endpoints
clientSecret
Link copied to clipboard
The application client secret found on the application dashboard
endpoints
Link copied to clipboard
episodes
Link copied to clipboard
Provides access to Spotify episode endpoints
expireTime
Link copied to clipboard
personalization
Link copied to clipboard
Provides access to endpoints for retrieving information about the user’s listening habits.
player
Link copied to clipboard
Provides access to the betaplayer api, including track playing and pausing endpoints.
redirectUri
Link copied to clipboard
runExecutableFunctions
Link copied to clipboard
search
Link copied to clipboard
Provides access to the Spotify search endpoint
shows
Link copied to clipboard
Provides access to Spotify show endpoints
spotifyApiOptions
Link copied to clipboard
tracks
Link copied to clipboard
Provides access to Spotify track endpoints
usesPkceAuth
Link copied to clipboard
Sources
(source)
Link copied to clipboard