BindWithWechatCode static method
Implementation
static Future<OperationResponse> BindWithWechatCode(String code) async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = UserManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
StringValue stringValue = StringValue();
stringValue.value = code;
OperationResponse operationResponse =
await stub.bindWithWechatCode(stringValue);
print('GetUserLoginResponse: ${operationResponse}');
channel.shutdown();
return operationResponse;
}