MailSlurpAPI.Api.AttachmentController.download_attachment_as_bytes

You're seeing just the function download_attachment_as_bytes, go back to MailSlurpAPI.Api.AttachmentController module for more information.
Link to this function

download_attachment_as_bytes(connection, attachment_id, opts \\ [])

Specs

download_attachment_as_bytes(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, String.t()} | {:error, Tesla.Env.t()}

Download attachments. Get email attachment bytes. If you have trouble with byte responses try the downloadAttachmentBase64 response endpoints. 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.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • attachment_id (String.t): ID of attachment
  • opts (KeywordList): [optional] Optional parameters

    Returns

} on success {:error, info} on failure