associateDevicesToUser 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 userId (required): User ID
-
List<String> deviceTokens (required): List of IoT ids
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));
}
}