Class AttachmentControllerApi

Hierarchy

Constructors

Properties

configuration: Configuration = ...

Methods

  • Delete all attachments

    Parameters

    • Optional initOverrides: RequestInit

    Returns Promise<void>

  • Delete all attachments

    Parameters

    • Optional initOverrides: RequestInit

    Returns Promise<ApiResponse<void>>

  • Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the downloadAttachment method but allows some clients to get around issues with binary responses. Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.

    Parameters

    Returns Promise<DownloadAttachmentDto>

  • Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. Download attachments. Get email attachment bytes. If you have trouble with byte responses try the downloadAttachmentBase64 response endpoints.

    Parameters

    Returns Promise<string>

  • Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream. Download attachments. Get email attachment bytes. If you have trouble with byte responses try the downloadAttachmentBase64 response endpoints.

    Parameters

    Returns Promise<ApiResponse<string>>

  • Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.

    Parameters

    Returns Promise<string[]>

  • Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.

    Parameters

    Returns Promise<string[]>

  • Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment.

    Parameters

    Returns Promise<string[]>