Package io.mailtrap.api.attachments
Interface Attachments
- All Known Implementing Classes:
AttachmentsImpl
public interface Attachments
Interface representing the Mailtrap Testing API for interaction with email message attachments.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttachments
(long accountId, long inboxId, long messageId, @Nullable String attachmentType) Get message attachments by inboxId and messageIdgetSingleAttachment
(long accountId, long inboxId, long messageId, long attachmentId) Get message single attachment by ID
-
Method Details
-
getSingleAttachment
AttachmentResponse getSingleAttachment(long accountId, long inboxId, long messageId, long attachmentId) Get message single attachment by ID- Parameters:
accountId
- - unique account IDinboxId
- - unique inbox IDmessageId
- - unique message IDattachmentId
- - unique attachment ID- Returns:
- attachment details and download path
-
getAttachments
List<AttachmentResponse> getAttachments(long accountId, long inboxId, long messageId, @Nullable @Nullable String attachmentType) Get message attachments by inboxId and messageId- Parameters:
accountId
- - unique account IDinboxId
- - unique inbox IDmessageId
- - unique message IDattachmentType
- - attachment type; optional query param- Returns:
- attachments with their details and download paths
-