DelUserConfigByKey static method

Future<OperationResponse> DelUserConfigByKey(
  1. String value
)

Implementation

static Future<OperationResponse> DelUserConfigByKey(String value) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = ConfigManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  StringValue stringValue = StringValue();
  stringValue.value = value;
  OperationResponse operationResponse =
      await stub.delUserConfigByKey(stringValue);
  print('DelUserConfigByKey: ${operationResponse}');
  channel.shutdown();
  return operationResponse;
}