NAME

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

SYNOPSIS

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

for my $assigned_add_on_extension ($client->incoming_phone_numbers($resource_sid)->assigned_add_ons($assigned_add_on_sid)->extensions->read({}, 20)) {
  ...
}
my $assigned_add_on_extension = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons($assigned_add_on_sid)->extensions($sid)->fetch;

DESCRIPTION

This file holds AssignedAddOnExtensionList, AssignedAddOnExtensionPage, AssignedAddOnExtensionContext and AssignedAddOnExtensionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

AssignedAddOnExtensionList

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

read

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

Retrieve a list of Extensions for the Assigned Add-on. 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($assigned_add_on_sid)->extensions->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($assigned_add_on_sid)->extensions->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($assigned_add_on_sid)->extensions->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($assigned_add_on_sid)->extensions->get_context($sid);

Returns a AssignedAddOnExtensionContext, and makes no request.

AssignedAddOnExtensionPage

A Twilio::Page of AssignedAddOnExtensionInstance objects.

records_key

build_instance

Used by Twilio::Page.

AssignedAddOnExtensionContext

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

fetch

my $assigned_add_on_extension = $client->incoming_phone_numbers($resource_sid)->assigned_add_ons($assigned_add_on_sid)->extensions($sid)->fetch;

Fetch an instance of an Extension for the Assigned Add-on. Returns a AssignedAddOnExtensionInstance.

AssignedAddOnExtensionInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the resource.

assigned_add_on_sid

The SID that uniquely identifies the assigned Add-on installation.

enabled

Whether the Extension will be invoked.

friendly_name

The string that you assigned to describe the resource.

product_name

A string that you assigned to describe the Product this Extension is used within.

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.

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.