Synctera.Webhooks (Synctera v1.0.0)

Copy Markdown View Source

Synctera 'Webhooks' endpoints.

Code generated by scripts/generate.py from the Synctera OpenAPI spec. Do not edit by hand — re-run mix generate (or python3 scripts/generate.py) to regenerate.

Summary

Functions

Create a webhook — Create a webhook

Like create_webhook1/2 but returns the value directly and raises on error.

Delete a webhook — Delete a webhook

Like delete_webhook/3 but returns the value directly and raises on error.

Get webhook event — Get webhook event by ID

Like get_event/4 but returns the value directly and raises on error.

Get a webhook — Get a webhook

Like get_webhook1/3 but returns the value directly and raises on error.

List webhook events — List webhook events. This response will not associate with the event response history.

Like list_events/3 but returns the value directly and raises on error.

List webhooks — List all webhooks

Like list_webhooks1/2 but returns the value directly and raises on error.

Resend an event — Resend a webhook event

Like resend_event/4 but returns the value directly and raises on error.

Trigger an event — Trigger an specific event for webhook testing purpose

Like trigger_event/2 but returns the value directly and raises on error.

Update a webhook — Update a webhook

Like update_webhook/3 but returns the value directly and raises on error.

Functions

create_webhook1(client, opts \\ [])

@spec create_webhook1(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Create a webhook — Create a webhook

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

create_webhook1!(client, opts)

@spec create_webhook1!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like create_webhook1/2 but returns the value directly and raises on error.

delete_webhook(client, webhook_id, opts \\ [])

@spec delete_webhook(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Delete a webhook — Delete a webhook

Options

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

delete_webhook!(client, webhook_id, opts)

@spec delete_webhook!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like delete_webhook/3 but returns the value directly and raises on error.

get_event(client, webhook_id, event_id, opts \\ [])

@spec get_event(Synctera.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Get webhook event — Get webhook event by ID

Options

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

get_event!(client, webhook_id, event_id, opts)

@spec get_event!(Synctera.Client.t(), String.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like get_event/4 but returns the value directly and raises on error.

get_webhook1(client, webhook_id, opts \\ [])

@spec get_webhook1(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Get a webhook — Get a webhook

Options

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

get_webhook1!(client, webhook_id, opts)

@spec get_webhook1!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like get_webhook1/3 but returns the value directly and raises on error.

list_events(client, webhook_id, opts \\ [])

@spec list_events(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

List webhook events — List webhook events. This response will not associate with the event response history.

Options

Query options: :start_date, :end_date, :start_time, :end_time, :limit, :page_token

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

list_events!(client, webhook_id, opts)

@spec list_events!(Synctera.Client.t(), String.t(), keyword()) :: Synctera.JSON.json()

Like list_events/3 but returns the value directly and raises on error.

list_webhooks1(client, opts \\ [])

@spec list_webhooks1(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

List webhooks — List all webhooks

Options

Query options: :limit, :page_token, :is_enabled_only

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

list_webhooks1!(client, opts)

@spec list_webhooks1!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like list_webhooks1/2 but returns the value directly and raises on error.

resend_event(client, webhook_id, event_id, opts \\ [])

@spec resend_event(Synctera.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Resend an event — Resend a webhook event

Options

Query options: :delay

  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

resend_event!(client, webhook_id, event_id, opts)

@spec resend_event!(Synctera.Client.t(), String.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like resend_event/4 but returns the value directly and raises on error.

trigger_event(client, opts \\ [])

@spec trigger_event(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Trigger an event — Trigger an specific event for webhook testing purpose

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

trigger_event!(client, opts)

@spec trigger_event!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like trigger_event/2 but returns the value directly and raises on error.

update_webhook(client, webhook_id, opts \\ [])

@spec update_webhook(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Update a webhook — Update a webhook

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

update_webhook!(client, webhook_id, opts)

@spec update_webhook!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like update_webhook/3 but returns the value directly and raises on error.