Resend.Client behaviour (resend v0.4.0)
Resend API client.
Link to this section Summary
Functions
Creates a new Resend client struct given a keyword list of config opts.
Link to this section Types
Link to this type
response(type)
@type response(type) :: {:ok, type} | {:error, Resend.Error.t() | :client_error}
Link to this section Callbacks
Link to this callback
request(t, t)
@callback request(t(), Keyword.t()) :: {:ok, %{body: map(), status: pos_integer()}} | {:error, any()}
Link to this section Functions
Link to this function
delete(client, castable_module, path, body \\ %{}, opts \\ [])
Link to this function
get(client, castable_module, path, opts \\ [])
Link to this function
new(config)
@spec new(Resend.config()) :: t()
Creates a new Resend client struct given a keyword list of config opts.
Link to this function