captain_hook v0.2.0 CaptainHook

Link to this section Summary

Link to this section Functions

Link to this function

create_webhook_endpoint(webhook, attrs)

Specs

create_webhook_endpoint(binary(), map()) :: WebhookEndpoint.t()

Callback implementation for CaptainHook.Behaviour.create_webhook_endpoint/2.

Link to this function

delete_webhook_endpoint(webhook_endpoint)

Specs

delete_webhook_endpoint(WebhookEndpoint.t()) :: WebhookEndpoint.t()

Callback implementation for CaptainHook.Behaviour.delete_webhook_endpoint/1.

Link to this function

filter_webhook_endpoints(webhook_endpoints, status, datetime)

Specs

filter_webhook_endpoints([WebhookEndpoint.t()], atom() | [atom()], DateTime.t()) ::
  [WebhookEndpoint.t()]

See CaptainHook.WebhookEndpoints.filter_webhook_endpoints/3.

Link to this function

get_webhook_conversation(id)

Specs

get_webhook_conversation(binary()) :: WebhookConversation.t()

Callback implementation for CaptainHook.Behaviour.get_webhook_conversation/1.

Link to this function

get_webhook_endpoint(webhook, id)

Specs

get_webhook_endpoint(binary(), binary()) :: WebhookEndpoint.t()

Callback implementation for CaptainHook.Behaviour.get_webhook_endpoint/2.

Link to this function

get_webhook_endpoint!(webhook, id)

Specs

get_webhook_endpoint!(binary(), binary()) :: WebhookEndpoint.t()

Callback implementation for CaptainHook.Behaviour.get_webhook_endpoint!/2.

Link to this function

list_webhook_conversations(param)

Specs

list_webhook_conversations(WebhookEndpoint.t() | {binary(), binary()}) :: [
  WebhookConversation.t()
]

Callback implementation for CaptainHook.Behaviour.list_webhook_conversations/1.

Link to this function

list_webhook_endpoints(webhook)

Specs

list_webhook_endpoints(binary()) :: [WebhookEndpoint.t()]

Callback implementation for CaptainHook.Behaviour.list_webhook_endpoints/1.

Link to this function

notify(webhook, action, arg, data, opts \\ [])

Specs

notify(binary(), binary(), {atom(), binary()}, map(), keyword()) ::
  :ok | {:error, :no_webhook_endpoint_found}

Callback implementation for CaptainHook.Behaviour.notify/5.

Link to this function

update_webhook_endpoint(webhook_endpoint, attrs)

Specs

update_webhook_endpoint(WebhookEndpoint.t(), map()) :: WebhookEndpoint.t()

Callback implementation for CaptainHook.Behaviour.update_webhook_endpoint/2.