Companion

object Companion

Functions

getAuthUrlFull
Link copied to clipboard
common
fun getAuthUrlFull(vararg scopes: SpotifyScope, clientId: String, redirectUri: String, isImplicitGrantFlow: Boolean = false, shouldShowDialog: Boolean = false, state: String? = null): String
Get the authorization url for the provided clientId and redirectUri application settings, when attempting to authorize with specified scopes
getCredentialedToken
Link copied to clipboard
common
suspend fun getCredentialedToken(clientId: String, clientSecret: String, api: GenericSpotifyApi?, json: Json = api?.spotifyApiOptions?.json ?: Json.Default): Token
Get an application token (can only access public methods) that can be used to instantiate a new SpotifyAppApi
getCredentialedTokenRestAction
Link copied to clipboard
common
fun getCredentialedTokenRestAction(clientId: String, clientSecret: String, api: GenericSpotifyApi?, json: Json = api?.spotifyApiOptions?.json ?: Json.Default): SpotifyRestAction<Token>
Get an application token (can only access public methods) that can be used to instantiate a new SpotifyAppApi
getPkceAuthUrlFull
Link copied to clipboard
common
fun getPkceAuthUrlFull(vararg scopes: SpotifyScope, clientId: String, redirectUri: String, codeChallenge: String, state: String? = null): String
Get the PKCE authorization url for the provided clientId and redirectUri application settings, when attempting to authorize with specified scopes

Sources

common source
Link copied to clipboard