getCredentialedToken

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

Parameters

clientId

Spotify client id

clientSecret
api

The Spotify Api instance, or null if one doesn't exist yet

json

The json instance that will deserialize the response.

Sources

(source)
Link copied to clipboard