MailSlurpClient::DownloadAttachmentDto

Properties

NameTypeDescriptionNotes
base64_file_contentsStringBase64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as text/html you can read the contents directly by converting it to string using utf-8 encoding.[optional]
content_typeStringContent type of attachment. Examples are image/png, application/msword, text/csv etc.[optional]
size_bytesIntegerSize in bytes of attachment content[optional]

Code Sample

require 'MailSlurpClient'

instance = MailSlurpClient::DownloadAttachmentDto.new(base64_file_contents: null,
                                 content_type: null,
                                 size_bytes: null)