CapabilitiesAPI

Provides coroutine-based and callback-based methods for managing account capabilities.

All methods require a non-empty accountId; calls with an empty ID return (null, null) without making a network request.

Functions

Link copied to clipboard

Disables a single capability by name for the given account.

fun disableCapabilityWith(accountId: String, name: String, completionHandler: (CapabilityObjects.Capability?, NetworkingError?) -> Unit)

Disables a single capability by name for the given account and delivers the result via a callback.

Link copied to clipboard

Fetches all capabilities for the given account.

Fetches all capabilities for the given account and delivers the result via a callback.

Link copied to clipboard

Fetches a single capability by name for the given account.

fun getCapabilityWith(accountId: String, name: String, completionHandler: (CapabilityObjects.Capability?, NetworkingError?) -> Unit)

Fetches a single capability by name for the given account and delivers the result via a callback.

Link copied to clipboard

Requests one or more capabilities for the given account.

Requests one or more capabilities for the given account and delivers the result via a callback.