associateUsersToDevice method
Associates one or more devices to the given user
Associates a list of iots to the given user if the security requirements are fulfilled
Parameters:
-
String token (required): IoT ID
-
List<String> userIds (required): List of user ids
Implementation
Future<void> associateUsersToDevice(
String token,
List<String> userIds,
) async {
final response = await associateUsersToDeviceWithHttpInfo(
token,
userIds,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}