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 Type
    Method
    Description
    getAttachments(long accountId, long inboxId, long messageId, @Nullable String attachmentType)
    Get message attachments by inboxId and messageId
    getSingleAttachment(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 ID
      inboxId - - unique inbox ID
      messageId - - unique message ID
      attachmentId - - 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 ID
      inboxId - - unique inbox ID
      messageId - - unique message ID
      attachmentType - - attachment type; optional query param
      Returns:
      attachments with their details and download paths