getUpload method

Future<void> getUpload(
  1. String uploadId
)

Get an upload session

Gets an upload session that has been previously created. ##### Permissions Must be logged in as the user who created the upload session.

Parameters:

  • String uploadId (required): The ID of the upload session to get.

Implementation

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