getAuthorizationUrl

abstract fun getAuthorizationUrl(vararg scopes: SpotifyScope, state: String? = null): String(source)

Create a Spotify authorization URL from which API access can be obtained

Return

Authorization URL that can be used in a browser

Parameters

scopes

The scopes that the application should have access to

state

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