KtifyBuilder

class KtifyBuilder(clientId: String, clientSecret: String, redirectUri: String)(source)

The builder for the Ktify class. Currently designed for single use.

Parameters

clientId

The client ID, provided by the spotify dashboard

clientSecret

The client secret, provided by the spotify dashboard

redirectUri

Your redirect URI (just for confirmation)

Constructors

Link copied to clipboard
constructor(clientId: String, clientSecret: String, redirectUri: String)

Functions

Link copied to clipboard
suspend fun build(authorizationCode: String): Ktify
Link copied to clipboard
suspend fun fromClientCredentials(clientCredentials: ClientCredentials): Ktify
Link copied to clipboard
fun getAuthorisationURL(scopes: List<Scope>): String