associateDevicesToUser method

Future<void> associateDevicesToUser(
  1. String userId,
  2. List<String> deviceTokens
)

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> associateDevicesToUser(
  String userId,
  List<String> deviceTokens,
) async {
  final response = await associateDevicesToUserWithHttpInfo(
    userId,
    deviceTokens,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}