downloadExport method

Future<void> downloadExport(
  1. String exportName
)

Download an export file

Downloads an export file. Minimum server version: 5.33 ##### Permissions Must have manage_system permissions.

Parameters:

  • String exportName (required): The name of the export file to download

Implementation

Future<void> downloadExport(
  String exportName,
) async {
  final response = await downloadExportWithHttpInfo(
    exportName,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}