TokenGet

@Serializable
data class TokenGet(val clientId: String, val clientSecret: String, val redirectUri: String, val grantType: GrantType, val scope: String?, val code: String?)

Object used to get a new Token.

Constructors

Link copied to clipboard
constructor(clientId: String, clientSecret: String, redirectUri: String, grantType: GrantType, scope: String?, code: String?)

Properties

Link copied to clipboard

Client ID, obtained during app registration.

Link copied to clipboard

Client secret, obtained during app registration.

Link copied to clipboard
val code: String?

A user authorization code, obtained via /oauth/authorize.

Link copied to clipboard

Grant type, set to GrantType.AuthorizationCode if code is provided in order to gain user-level access.

Link copied to clipboard

URI to redirect the user to.

Link copied to clipboard

List of requested OAuth scopes, separated by spaces.