get Credentialed Token
suspend fun getCredentialedToken(clientId: String, clientSecret: String, api: GenericSpotifyApi?, json: Json = api?.spotifyApiOptions?.json ?: Json.Default): Token(source)
Get an application token (can only access public methods) that can be used to instantiate a new SpotifyAppApi
Parameters
client Id
Spotify client id
client Secret
Spotify client secret
api
The Spotify Api instance, or null if one doesn't exist yet
json
The json instance that will deserialize the response.