getAttachmentMetaDataWithHttpInfo method

Future<Response> getAttachmentMetaDataWithHttpInfo(
  1. String emailId,
  2. String attachmentId
)

Get email attachment metadata. This is the contentType and contentLength of an attachment. To get the individual attachments use the downloadAttachment methods.

Returns the metadata such as name and content-type for a given attachment and email.

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email

  • String attachmentId (required): ID of attachment

Implementation

Future<Response> getAttachmentMetaDataWithHttpInfo(String emailId, String attachmentId,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{emailId}/attachments/{attachmentId}/metadata'
    .replaceAll('{emailId}', emailId)
    .replaceAll('{attachmentId}', attachmentId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  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,
  );
}