Functions
Link copied to clipboard
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
Link copied to clipboard
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
Link copied to clipboard
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
Link copied to clipboard
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