Device Management within a Subscription
Pre-requisite
- The user has to be signed in to perform the following operations.
Update Devices in Subscription
To bind or update devices associated with a subscription, use the following method:
subscriptionId(required): The unique ID of the subscription.deviceIds(required): The request object containing the device IDs to be bound.
val request = BindDeviceRequest(
deviceIds = listOf("device1", "device2")
)
InstaVision.subscriptionService.updateDevicesInSubscription(
subscriptionId = "subscriptionId",
deviceIds = request,
onSuccess = { response ->
// Devices have been updated successfully
},
onError = { error ->
// The error object contains the error code and message
}
)