getSpotifyAuthorizationUrl

fun getSpotifyAuthorizationUrl(vararg scopes: SpotifyScope, clientId: String, redirectUri: String, isImplicitGrantFlow: Boolean = false, shouldShowDialog: Boolean = false, state: String? = null): String(source)

Get the authorization url for the provided clientId and redirectUri application settings, when attempting to authorize with specified scopes

Parameters

scopes

Spotify scopes the api instance should be able to access for the user

clientId

Spotify client id

redirectUri

Spotify redirect uri

isImplicitGrantFlow

Whether the authorization url should be for the Implicit Grant flow, otherwise for Authorization Code flo

shouldShowDialog

If isImplicitGrantFlow is true, whether or not to force the user to approve the app again if they’ve already done so.

state

This provides protection against attacks such as cross-site request forgery.