getRamAccountInfo method

Future<Map<String, dynamic>> getRamAccountInfo({
  1. String? accountId,
  2. String? accountName,
})

Implementation

Future<Map<String, dynamic>> getRamAccountInfo({
  String? accountId,
  String? accountName,
}) async {
  // If not using sub-account's accessToken, one of accountId or accountName must be provided.
  // If both provided, accountId is used.
  final body = <String, dynamic>{};
  if (accountId != null) body['accountId'] = accountId;
  if (accountName != null) body['accountName'] = accountName;
  return _client.post('/api/lapp/ram/account/get', body);
}