Resend.Client.TeslaClient (resend v0.2.5)

Tesla client for Resend. This is the default HTTP client used.

Link to this section Summary

Functions

Returns a new Tesla.Client, configured for calling the Resend API.

Sends a POST request to a Resend API endpoint, given list of config options and a request body.

Link to this section Functions

@spec new(Resend.Client.t()) :: Tesla.Client.t()

Returns a new Tesla.Client, configured for calling the Resend API.

Link to this function

post(client, path, body)

@spec post(Resend.Client.t(), String.t(), map()) ::
  {:ok, %{body: map(), status: pos_integer()}} | {:error, any()}

Sends a POST request to a Resend API endpoint, given list of config options and a request body.