ClientConfiguration class

Represents a set of configurations for a client.

The configurations are including client ID, client secret and so on.

Constructors

ClientConfiguration({@required String clientId, @required String clientSecret, String userAgent = 'KKBOX OpenAPI Dart SDK', Set<Scope> scope, Environment environment = Environment.production})
Creates a new instance by passing required parameters.

Properties

clientId String
The client ID. You can get one from developer.kkbox.com.
final
clientSecret String
The client secret. You can get one from developer.kkbox.com.
final
environment Environment
The API environment.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
loginCredential String
The login credential composed by client ID and client secret.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope Set<Scope>
The requested scope.
final
userAgent String
What would be used in the 'User-Agent' HTTP header field.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited