Twilio.Numbers.V1.Porting.Configuration.WebhookService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for Webhook API operations.

Operations: list, create, delete

Summary

Functions

Create a Webhook Configuration

Allows the client to delete a webhook configuration.

Allows to fetch the webhook configuration

Stream: Allows to fetch the webhook configuration (lazy auto-pagination).

Functions

create(client, params \\ %{}, opts \\ [])

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Numbers.V1.Porting.Configuration.Webhook.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Create a Webhook Configuration

Operation: CreatePortingWebhookConfiguration | Tags: NumbersV1PortingWebhookConfiguration

delete(client, sid, opts \\ [])

@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}

Allows the client to delete a webhook configuration.

Operation: DeletePortingWebhookConfigurationDelete | Tags: NumbersV1PortingWebhookConfigurationDelete

list(client, params \\ %{}, opts \\ [])

@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Allows to fetch the webhook configuration

Operation: FetchPortingWebhookConfigurationFetch | Tags: NumbersV1PortingWebhookConfigurationFetch

stream(client, params \\ %{}, opts \\ [])

@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()

Stream: Allows to fetch the webhook configuration (lazy auto-pagination).