Attachments
Nylas Attachments API
The Nylas Attachments API allows you to fetch attachment metadata and download data.
Parameters
client
The configured Nylas API client
Functions
Link copied to clipboard
public final ResponseBody download(String identifier, String attachmentId, FindAttachmentQueryParams queryParams)
public final ResponseBody download(String identifier, String attachmentId, FindAttachmentQueryParams queryParams, RequestOverrides overrides)
Download the attachment data
Link copied to clipboard
public final ByteArray downloadBytes(String identifier, String attachmentId, FindAttachmentQueryParams queryParams)
public final ByteArray downloadBytes(String identifier, String attachmentId, FindAttachmentQueryParams queryParams, RequestOverrides overrides)
Download the attachment as a byte array
Link copied to clipboard
public final Response<Attachment> find(String identifier, String attachmentId, FindAttachmentQueryParams queryParams)
public final Response<Attachment> find(String identifier, String attachmentId, FindAttachmentQueryParams queryParams, RequestOverrides overrides)
Return metadata of an attachment