Poodle.HTTP.Client (poodle v1.0.0)

View Source

HTTP client for the Poodle SDK.

Handles HTTP requests to the Poodle API with proper error handling, authentication, and rate limiting.

Summary

Functions

Send a POST request to the Poodle API.

Functions

post(config, path, data, opts \\ [])

@spec post(Poodle.Config.t(), String.t(), map(), keyword()) ::
  {:ok, Poodle.Response.t()} | {:error, Poodle.Error.t()}

Send a POST request to the Poodle API.

Examples

iex> config = %Poodle.Config{api_key: "key", base_url: "https://api.example.com"}
iex> data = %{from: "from@example.com", to: "to@example.com", subject: "Test"}
iex> Poodle.HTTP.Client.post(config, "/v1/send-email", data)
{:ok, %Poodle.Response{...}}