spotify Client Pkce Api
fun spotifyClientPkceApi(clientId: String?, redirectUri: String?, authorization: SpotifyUserAuthorization, block: SpotifyApiOptions.() -> Unit = {}): SpotifyClientApiBuilder
Content copied to clipboard
Instantiate a new SpotifyClientApiBuilder. This is for PKCE authorization.
Use case: I am using the PKCE client authorization flow.
Return
Configurable SpotifyClientApiBuilder that, when built, creates a new SpotifyClientApi
Parameters
clientId
Spotify client id
redirectUri
Spotify redirect uri
authorization
A SpotifyUserAuthorization that must contain one of the following: authorization code (preferred), access token string (tokenString), Token object, and that may contain a refresh token (preferred) with which to refresh the access token. Retrieved after PKCE client authorization flow. **You must provide a code verifier (plaintext).
block
Override default API options such as the cache limit
Sources
(source)
Link copied to clipboard