GetUserConfigByKey static method

Future<StringValue> GetUserConfigByKey(
  1. String value
)

Implementation

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