Skip to main content

Authentication


Method#

This method returns an access_token for a given client id and client secret

suspend fun getAuthToken(tokenRequest: TokenRequest): TokenResponse 

Token Request Model#

Represents the structure of the TokenRequest object used to obtain the access token

  data class TokenRequest(    val client_id: String,     val client_secret: String  )

Token Permissions#

Method#

This method returns permissions associated with a token

fun getPermissions(token: String): List<String>