View Source Resend.Client behaviour (resend v0.4.4)
Resend API client.
Summary
Functions
Creates a new Resend client struct given a keyword list of config opts.
Types
@type response(type) :: {:ok, type} | {:error, Resend.Error.t() | :client_error}
Callbacks
@callback request(t(), Keyword.t()) :: {:ok, %{body: map(), status: pos_integer()}} | {:error, any()}
Functions
@spec new(Resend.config()) :: t()
Creates a new Resend client struct given a keyword list of config opts.