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