Package io.mailtrap.api.attachments
Class AttachmentsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.attachments.AttachmentsImpl
- All Implemented Interfaces:
Attachments
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttachments
(long accountId, long inboxId, long messageId, String attachmentType) Get message attachments by inboxId and messageIdgetSingleAttachment
(long accountId, long inboxId, long messageId, long attachmentId) Get message single attachment by ID
-
Constructor Details
-
AttachmentsImpl
-
-
Method Details
-
getSingleAttachment
public AttachmentResponse getSingleAttachment(long accountId, long inboxId, long messageId, long attachmentId) Description copied from interface:Attachments
Get message single attachment by ID- Specified by:
getSingleAttachment
in interfaceAttachments
- Parameters:
accountId
- - unique account IDinboxId
- - unique inbox IDmessageId
- - unique message IDattachmentId
- - unique attachment ID- Returns:
- attachment details and download path
-
getAttachments
public List<AttachmentResponse> getAttachments(long accountId, long inboxId, long messageId, String attachmentType) Description copied from interface:Attachments
Get message attachments by inboxId and messageId- Specified by:
getAttachments
in interfaceAttachments
- Parameters:
accountId
- - unique account IDinboxId
- - unique inbox IDmessageId
- - unique message IDattachmentType
- - attachment type; optional query param- Returns:
- attachments with their details and download paths
-