Function OAuthSettings.clientSession

Obtain a new session using client credentials.

final OAuthSession clientSession (
  string[] scopes = null
) @safe immutable;

Parameters

NameDescription
scopes An array of identifiers specifying the scope of access to be requested. (optional)

Returns

The new session.

Throws

OAuthException if authentication fails.