Twilio.Flex.V1.WebChannelService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for WebChannel API operations.

Operations: list, create, fetch, update, delete

Summary

Functions

Operation: CreateWebChannel | Tags: FlexV1WebChannel

Operation: DeleteWebChannel | Tags: FlexV1WebChannel

Operation: FetchWebChannel | Tags: FlexV1WebChannel

Operation: ListWebChannel | Tags: FlexV1WebChannel

Stream: (lazy auto-pagination).

Operation: UpdateWebChannel | Tags: FlexV1WebChannel

Functions

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

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Flex.V1.WebChannel.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: CreateWebChannel | Tags: FlexV1WebChannel

Required Parameters

ParameterTypeDescription
ChatFriendlyNamestringThe chat channel's friendly name.
CustomerFriendlyNamestringThe chat participant's friendly name.
FlexFlowSidstringThe SID of the Flex Flow.
IdentitystringThe chat identity.

Optional Parameters

ParameterTypeDescription
ChatUniqueNamestringThe chat channel's unique name.
PreEngagementDatastringThe pre-engagement data.

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

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

Operation: DeleteWebChannel | Tags: FlexV1WebChannel

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

@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Flex.V1.WebChannel.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: FetchWebChannel | Tags: FlexV1WebChannel

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

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

Operation: ListWebChannel | Tags: FlexV1WebChannel

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

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

Stream: (lazy auto-pagination).

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

@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Flex.V1.WebChannel.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: UpdateWebChannel | Tags: FlexV1WebChannel

Optional Parameters

ParameterTypeDescription
ChatStatusstringValues: inactive
PostEngagementDatastringThe post-engagement data.