getUploadWithHttpInfo method

Future<Response> getUploadWithHttpInfo(
  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.

Note: This method returns the HTTP Response.

Parameters:

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

Implementation

Future<Response> getUploadWithHttpInfo(
  String uploadId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/uploads/{upload_id}'.replaceAll('{upload_id}', uploadId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}