HookSniff.Inbound (hooksniff v1.2.0)

Inbound webhook configuration.

Summary

Functions

create_config(client, params)

@spec create_config(HookSniff.t(), map()) :: {:ok, map()} | {:error, term()}

Create a config

delete_config(client, id)

@spec delete_config(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}

Delete a config

handle(client, provider, body, headers \\ [])

@spec handle(HookSniff.t(), String.t(), map(), keyword()) ::
  {:ok, map()} | {:error, term()}

Handle inbound webhook

list_configs(client)

@spec list_configs(HookSniff.t()) :: {:ok, map()} | {:error, term()}

List inbound configs

update_config(client, id, params)

@spec update_config(HookSniff.t(), String.t(), map()) ::
  {:ok, map()} | {:error, term()}

Update a config