MailSlurpAPI.Api.MissedEmailController (mailslurp v15.17.22)

API calls for all endpoints tagged MissedEmailController.

Summary

Functions

Get all MissedEmails in paginated format

Get all unknown missed emails in paginated format Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox.

Get MissedEmail List emails that were missed due to plan limits.

Restore missed emails If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method.

Wait for Nth missed email Wait for 0 based index missed email

Functions

Link to this function

get_all_missed_emails(connection, opts \\ [])

@spec get_all_missed_emails(Tesla.Env.client(), keyword()) ::
  {:ok, MailSlurpAPI.Model.PageMissedEmailProjection.t()}
  | {:error, Tesla.Env.t()}

Get all MissedEmails in paginated format

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters
    • :page (integer()): Optional page index in list pagination
    • :size (integer()): Optional page size in list pagination
    • :sort (String.t): Optional createdAt sort direction ASC or DESC
    • :search_filter (String.t): Optional search filter
    • :since (DateTime.t): Filter by created at after the given timestamp
    • :before (DateTime.t): Filter by created at before the given timestamp
    • :inbox_id (String.t): Optional inbox ID filter

Returns

} on success {:error, info} on failure

Link to this function

get_all_unknown_missed_emails(connection, opts \\ [])

@spec get_all_unknown_missed_emails(Tesla.Env.client(), keyword()) ::
  {:ok, MailSlurpAPI.Model.PageUnknownMissedEmailProjection.t()}
  | {:error, Tesla.Env.t()}

Get all unknown missed emails in paginated format Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters
    • :page (integer()): Optional page index in list pagination
    • :size (integer()): Optional page size in list pagination
    • :sort (String.t): Optional createdAt sort direction ASC or DESC
    • :search_filter (String.t): Optional search filter
    • :since (DateTime.t): Filter by created at after the given timestamp
    • :before (DateTime.t): Filter by created at before the given timestamp
    • :inbox_id (String.t): Optional inbox ID filter

Returns

} on success {:error, info} on failure

Link to this function

get_missed_email(connection, missed_email_id, opts \\ [])

@spec get_missed_email(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, MailSlurpAPI.Model.MissedEmailDto.t()} | {:error, Tesla.Env.t()}

Get MissedEmail List emails that were missed due to plan limits.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • missed_email_id (String.t):
  • opts (KeywordList): [optional] Optional parameters

Returns

} on success {:error, info} on failure

Link to this function

restore_missed_emails(connection, opts \\ [])

@spec restore_missed_emails(Tesla.Env.client(), keyword()) ::
  {:ok, nil} | {:error, Tesla.Env.t()}

Restore missed emails If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

Returns

} on success {:error, info} on failure

Link to this function

wait_for_nth_missed_email(connection, index, opts \\ [])

@spec wait_for_nth_missed_email(Tesla.Env.client(), integer(), keyword()) ::
  {:ok, MailSlurpAPI.Model.MissedEmailDto.t()} | {:error, Tesla.Env.t()}

Wait for Nth missed email Wait for 0 based index missed email

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • index (integer()): Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1
  • opts (KeywordList): [optional] Optional parameters
    • :inbox_id (String.t): Optional inbox ID filter
    • :timeout (integer()): Optional timeout milliseconds
    • :since (DateTime.t): Filter by created at after the given timestamp
    • :before (DateTime.t): Filter by created at before the given timestamp

Returns

} on success {:error, info} on failure