This module provides functions for retrieving audit event resources in the Humaans API. Audit events are retrieve-only via the API; there is no list endpoint.
Summary
Functions
Retrieves a specific audit_event by ID.
Types
Functions
@spec retrieve(client :: map(), id :: String.t()) :: {:ok, Humaans.Resources.AuditEvent.t()} | {:error, Humaans.Error.t()}
Retrieves a specific audit_event by ID.
Parameters
client- Client created withHumaans.new/1id- String ID of the audit_event to retrieve
Examples
client = Humaans.new(access_token: "your_access_token")
{:ok, audit_event} = Humaans.AuditEvents.retrieve(client, "audit_event_id")