download
public final ResponseBody download(String identifier, String attachmentId, FindAttachmentQueryParams queryParams)
Download the attachment data
This method returns a ResponseBody which can be used to stream the attachment data, and exposes useful headers such as the content type and content length. NOTE: The caller is responsible for closing the response body.
Alternatively, you can use downloadBytes to download the attachment as a byte array.
Return
The ResponseBody containing the file data
Parameters
identifier
Grant ID or email account to query
attachment Id
The id of the attachment to download.
query Params
The query parameters to include in the request