This module provides functions for listing and retrieving webhook event resources in the Humaans API. Webhook events are read-only via the API.
Summary
Types
Functions
@spec list(client :: map(), params :: map() | keyword() | [{String.t(), term()}]) :: {:ok, [Humaans.Resources.WebhookEvent.t()]} | {:error, Humaans.Error.t()}
Lists all webhook_events.
Returns a list of webhook_events matching the optional filter params.
Parameters
client- Client created withHumaans.new/1params- Optional map of filter parameters (default:%{})
Examples
client = Humaans.new(access_token: "your_access_token")
{:ok, webhook_events} = Humaans.WebhookEvents.list(client)
{:ok, webhook_events} = Humaans.WebhookEvents.list(client, %{})
@spec retrieve(client :: map(), id :: String.t()) :: {:ok, Humaans.Resources.WebhookEvent.t()} | {:error, Humaans.Error.t()}
Retrieves a specific webhook_event by ID.
Parameters
client- Client created withHumaans.new/1id- String ID of the webhook_event to retrieve
Examples
client = Humaans.new(access_token: "your_access_token")
{:ok, webhook_event} = Humaans.WebhookEvents.retrieve(client, "webhook_event_id")