Twilio.Intelligence.V3.ControlPlane.OperatorService (twilio_elixir v0.1.3)

Copy Markdown View Source

Service for Operator API operations.

Operations: list, create, fetch, delete

Summary

Functions

Delete a Operator.

Fetch a Operator.

Stream: Retrieve a list of Operators for the account, including those not attached to an Intelligence Configuration. This request returns both Twilio-authored and custom language operators. (lazy auto-pagination).

Functions

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

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Intelligence.V3.ControlPlane.Operator.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

credo:disable-for-next-line Credo.Check.Readability.MaxLineLength

Create a custom language operator. You can define a reusable, programmable conversational analysis task tailored to your business needs.

Operation: CreateOperator | Tags: Operators

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

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

Delete a Operator.

Operation: DeleteOperator | Tags: Operators

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

@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Intelligence.V3.ControlPlane.Operator.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Fetch a Operator.

Operation: FetchOperator | Tags: Operators

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

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

credo:disable-for-next-line Credo.Check.Readability.MaxLineLength

Retrieve a list of Operators for the account, including those not attached to an Intelligence Configuration. This request returns both Twilio-authored and custom language operators.

Operation: ListOperators | Tags: Operators

Query Parameters

ParameterTypeDescription
pageSizeintegerThe maximum number of resources to return
pageTokenstringToken for pagination

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

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

Stream: Retrieve a list of Operators for the account, including those not attached to an Intelligence Configuration. This request returns both Twilio-authored and custom language operators. (lazy auto-pagination).