kkbox_auth library Authentication

The library implements various the authentication method provided by KKBOX.

Client Credentials Flow

To start accessing KKBOX's Open API, all you need to do is to have a client ID and secret on developer.kkbox.com, create an instance of ClientCredentialsFlowApi, call run.

Then you can get an AccessToken. With the AccessToken, you can then access the data for public listing by using the API in the kkbox_openapi library.

Classes

AccessToken
Represents access tokens. [...]
ClientConfiguration
Represents a set of configurations for a client. [...]
ClientCredentialsFlowApi
Implements client credentials flow. [...]

Functions

scopeFromString(String string) Scope
Converts a string to a Scope.
scopesFromString(String s) Set<Scope>
Converts a string to a set of Scope.
scopesToString(Set<Scope> scopes) String
Converts a set of Scope to a string.
scopeToString(Scope scope) String
Converts a Scope to a string.

Enums

Environment
Represents API environment.
Scope
Scope of your client.