Class AttachmentsImpl

java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.attachments.AttachmentsImpl
All Implemented Interfaces:
Attachments

public class AttachmentsImpl extends ApiResource implements Attachments
  • Constructor Details

  • 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 interface Attachments
      Parameters:
      accountId - - unique account ID
      inboxId - - unique inbox ID
      messageId - - unique message ID
      attachmentId - - 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 interface Attachments
      Parameters:
      accountId - - unique account ID
      inboxId - - unique inbox ID
      messageId - - unique message ID
      attachmentType - - attachment type; optional query param
      Returns:
      attachments with their details and download paths