getAttachmentInfoWithHttpInfo method
Get email attachment metadata information
Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties name
and content-type
and content-length
in bytes for a given attachment.
Note: This method returns the HTTP Response
.
Parameters:
- String attachmentId (required): ID of attachment
Implementation
Future<Response> getAttachmentInfoWithHttpInfo(String attachmentId,) async {
// ignore: prefer_const_declarations
final path = r'/attachments/{attachmentId}/metadata'
.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,
);
}