getCredentialedTokenRestAction

fun getCredentialedTokenRestAction(clientId: String, clientSecret: String, api: GenericSpotifyApi?, json: Json = api?.spotifyApiOptions?.json ?: Json.Default): SpotifyRestAction<Token>(source)

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.