getEmailAttachmentsWithHttpInfo method

Future<Response> getEmailAttachmentsWithHttpInfo(
  1. String emailId
)

Get all email attachment metadata. Metadata includes name and size of attachments.

Returns an array of attachment metadata such as name and content-type for a given email if present.

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email

Implementation

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

  // 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,
  );
}