User Access Token
Get the User ID and Token
Sentiance.shared.requestUserAccessToken { result, error in
if let result = result {
print("Token: \(result.token)")
}
}sentiance.requestUserAccessToken().addOnCompleteListener { operation ->
if (operation.isSuccessful) {
val token = operation.result
} else {
val error = operation.error
Log.e(TAG, "Failed to get access token, reason ${error.reason.name}.")
}
}Failure
Last updated