Class EmailLogsImpl

java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.emaillogs.EmailLogsImpl
All Implemented Interfaces:
EmailLogs

public class EmailLogsImpl extends ApiResource implements EmailLogs
  • Constructor Details

  • Method Details

    • list

      public EmailLogsListResponse list(long accountId, String searchAfter, EmailLogsListFilters filters)
      Description copied from interface: EmailLogs
      Returns a paginated list of email logs for the account.
      Specified by:
      list in interface EmailLogs
      Parameters:
      accountId - account ID
      searchAfter - optional cursor (message_id UUID from previous response next_page_cursor) for the next page
      filters - optional filters; pass null or empty to omit
      Returns:
      paginated list with messages, total_count, and next_page_cursor
    • get

      public EmailLogMessage get(long accountId, String sendingMessageId)
      Description copied from interface: EmailLogs
      Returns a single email log message by its UUID.
      Specified by:
      get in interface EmailLogs
      Parameters:
      accountId - account ID
      sendingMessageId - message UUID
      Returns:
      the message with details and events, or throws if not found