NAME

Twilio::Rest::Api::V2010::Account::IncomingPhoneNumber::AssignedAddOn - The AssignedAddOn resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $assigned_add_on = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->create($installed_add_on_sid);
for my $assigned_add_on ($client->incoming_phone_numbers($resource_sid)->assigned_add_ons->read({}, 20)) {
  ...
}
my $assigned_add_on = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons($sid)->fetch;
$client->incoming_phone_numbers($resource_sid)->assigned_add_ons($sid)->delete;

DESCRIPTION

This file holds AssignedAddOnList, AssignedAddOnPage, AssignedAddOnContext and AssignedAddOnInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

AssignedAddOnList

Returned by $client->incoming_phone_numbers($resource_sid)->assigned_add_ons. See also Twilio::ListResource.

create

my $assigned_add_on = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->create($installed_add_on_sid);

Assign an Add-on installation to the Number specified. Returns a AssignedAddOnInstance.

The required values are:

$installed_add_on_sid

The SID that identifies the Add-on installation.

read

my @records = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->read(\%options, $limit, $page_size);

Retrieve a list of Add-on installations currently assigned to this Number. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons->get_context($sid);

Returns a AssignedAddOnContext, and makes no request.

AssignedAddOnPage

A Twilio::Page of AssignedAddOnInstance objects.

records_key

build_instance

Used by Twilio::Page.

AssignedAddOnContext

Returned by $client->incoming_phone_numbers($resource_sid)->assigned_add_ons($sid). It makes no request until one of these methods is called.

fetch

my $assigned_add_on = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons($sid)->fetch;

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

delete

$client->incoming_phone_numbers($resource_sid)->assigned_add_ons($sid)->delete;

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

extensions

my $list = $object->extensions;

my $context = $object->extensions($sid);

See Twilio::Rest::Api::V2010::Account::IncomingPhoneNumber::AssignedAddOn::AssignedAddOnExtension.

AssignedAddOnInstance

See also Twilio::InstanceResource.

It has fetch, delete and extensions, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the resource.

configuration

A JSON string that represents the current configuration of this Add-on installation.

date_created

The date and time in GMT that the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT that the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

description

A short description of the functionality that the Add-on provides.

friendly_name

The string that you assigned to describe the resource.

resource_sid

The SID of the Phone Number to which the Add-on is assigned.

sid

The unique string that that we created to identify the resource.

subresource_uris

A list of related resources identified by their relative URIs.

unique_name

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

uri

The URI of the resource, relative to https://api.twilio.com.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.