AccessToken

data class AccessToken(var accessToken: String, var tokenType: String, var expiresIn: Int)

Data class representing an access token received from the MTN MOMO API.

Constructors

Link copied to clipboard
constructor(accessToken: String, tokenType: String, expiresIn: Int)

Properties

Link copied to clipboard

The access token as a String.

Link copied to clipboard

The number of seconds until the token expires (e.g. 3600 = 1 hour).

Link copied to clipboard

The type of the token (e.g., Bearer).