captain_hook v0.2.0 CaptainHook.WebhookEndpoints

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()) ::
  CaptainHook.WebhookEndpoints.WebhookEndpoint.t()
Link to this function

delete_webhook_endpoint(webhook_endpoint, ended_at \\ DateTime.utc_now())

Specs

delete_webhook_endpoint(
  CaptainHook.WebhookEndpoints.WebhookEndpoint.t(),
  DateTime.t()
) :: CaptainHook.WebhookEndpoints.WebhookEndpoint.t()
Link to this function

filter_webhook_endpoints(webhook_endpoints, status, datetime)

Specs

filter_webhook_endpoints(
  [CaptainHook.WebhookEndpoints.WebhookEndpoint.t()],
  atom(),
  DateTime.t()
) :: [CaptainHook.WebhookEndpoints.WebhookEndpoint.t()]
Link to this function

get_webhook_endpoint(webhook, id)

Specs

get_webhook_endpoint(binary(), binary()) ::
  CaptainHook.WebhookEndpoints.WebhookEndpoint.t()
Link to this function

get_webhook_endpoint!(webhook, id)

Specs

get_webhook_endpoint!(binary(), binary()) ::
  CaptainHook.WebhookEndpoints.WebhookEndpoint.t()
Link to this function

list_webhook_endpoints(webhook)

Specs

list_webhook_endpoints(binary()) :: [
  CaptainHook.WebhookEndpoints.WebhookEndpoint.t()
]
Link to this function

update_webhook_endpoint(webhook_endpoint, attrs)

Specs

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