Twilio.Api.V2010.IncomingPhoneNumber.AssignedAddOnService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for AssignedAddOn API operations.

Operations: list, create, fetch, delete

Summary

Functions

Assign an Add-on installation to the Number specified.

Remove the assignment of an Add-on installation from the Number specified.

Fetch an instance of an Add-on installation currently assigned to this Number.

Retrieve a list of Add-on installations currently assigned to this Number.

Stream: Retrieve a list of Add-on installations currently assigned to this Number. (lazy auto-pagination).

Functions

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

@spec create(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Api.V2010.IncomingPhoneNumber.AssignedAddOn.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Assign an Add-on installation to the Number specified.

Operation: CreateIncomingPhoneNumberAssignedAddOn | Tags: Api20100401AssignedAddOn

Required Parameters

ParameterTypeDescription
InstalledAddOnSidstringThe SID that identifies the Add-on installation.

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

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

Remove the assignment of an Add-on installation from the Number specified.

Operation: DeleteIncomingPhoneNumberAssignedAddOn | Tags: Api20100401AssignedAddOn

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

Fetch an instance of an Add-on installation currently assigned to this Number.

Operation: FetchIncomingPhoneNumberAssignedAddOn | Tags: Api20100401AssignedAddOn

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

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

Retrieve a list of Add-on installations currently assigned to this Number.

Operation: ListIncomingPhoneNumberAssignedAddOn | Tags: Api20100401AssignedAddOn

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

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

Stream: Retrieve a list of Add-on installations currently assigned to this Number. (lazy auto-pagination).