Twilio.Preview.Wireless.CommandService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for Command API operations.

Operations: list, create, fetch

Summary

Functions

Operation: CreateWirelessCommand | Tags: PreviewWirelessCommand

Operation: FetchWirelessCommand | Tags: PreviewWirelessCommand

Operation: ListWirelessCommand | Tags: PreviewWirelessCommand

Stream: (lazy auto-pagination).

Functions

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

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Preview.Wireless.Command.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: CreateWirelessCommand | Tags: PreviewWirelessCommand

Required Parameters

ParameterTypeDescription
Commandstring

Optional Parameters

ParameterTypeDescription
CallbackMethodstring
CallbackUrlstring (uri)
CommandModestring
Devicestring
IncludeSidstring
Simstring

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

@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Preview.Wireless.Command.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: FetchWirelessCommand | Tags: PreviewWirelessCommand

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

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

Operation: ListWirelessCommand | Tags: PreviewWirelessCommand

Query Parameters

ParameterTypeDescription
Devicestring
Simstring
Statusstring
Directionstring

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

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

Stream: (lazy auto-pagination).