associateUsersToDevice method

Future<void> associateUsersToDevice(
  1. String token,
  2. List<String> userIds
)

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:

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));
  }
}