Resend.Client.TeslaClient (resend v0.2.1)
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
Link to this function
new(client)
@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.