HookSniff.MessageAttempts (hooksniff v1.2.0)

Delivery attempt tracking.

Summary

Functions

get(client, msg_id, attempt_id)

@spec get(HookSniff.t(), String.t(), String.t()) :: {:ok, map()} | {:error, term()}

Get an attempt

list_by_endpoint(client, endpoint_id, opts \\ [])

@spec list_by_endpoint(HookSniff.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, term()}

List attempts by endpoint

list_by_msg(client, msg_id, opts \\ [])

@spec list_by_msg(HookSniff.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, term()}

List attempts by message

resend(client, msg_id, endpoint_id)

@spec resend(HookSniff.t(), String.t(), String.t()) :: {:ok, map()} | {:error, term()}

Resend to endpoint