token

fun Credentials.Builder.token(accessToken: String, accessTokenSecret: String)

Configures your account with access token and access token secret.

Parameters

accessToken

Access token.

accessTokenSecret

Access token secret.


fun Credentials.Builder.token(bearerToken: String)

Configures your account with bearer token.

Parameters

bearerToken

Bearer token.


fun Credentials.Builder.token(client: OfficialClient.OAuth2)

Configures your account with predefined OAuth 2 client.

Parameters

client

Predefined OAuth 2 client.