Retrieving Entitlements
Entitlements APIs for retrieving user entitlements information
getEntitlementsConsumption
do {
let entitlements = try await entitlementsClient.getEntitlementsConsumption()
// Handle entitlements
} catch {
// Handle error
}try {
val consumption = entitlementsClient.getEntitlementsConsumption()
// Handle consumption
}
catch (e: SudoEntitlements.EntitlementsException) {
// Handle error
}try {
const consumption = await entitlementsClient.getEntitlementsConsumption()
// Handle consumption
}
catch (err) {
// Handle error
}Errors
Last updated