NAME

Twilio::Rest::PreviewIam::Versionless::Organization::Account - The Account resource

SYNOPSIS

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

for my $account ($client->preview_iam->versionless->organization($organization_sid)->accounts->read({}, 20)) {
  ...
}
my $account = $client->preview_iam->versionless->organization($organization_sid)->accounts($account_sid)->fetch;

DESCRIPTION

This file holds AccountList, AccountPage, AccountContext and AccountInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

AccountList

Returned by $client->preview_iam->versionless->organization($organization_sid)->accounts. See also Twilio::ListResource.

read

my @records = $client->preview_iam->versionless->organization($organization_sid)->accounts->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->preview_iam->versionless->organization($organization_sid)->accounts->stream(\%options, $limit, $page_size);

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

page

my $page = $client->preview_iam->versionless->organization($organization_sid)->accounts->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->preview_iam->versionless->organization($organization_sid)->accounts->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->preview_iam->versionless->organization($organization_sid)->accounts->get_context($account_sid);

Returns a AccountContext, and makes no request.

AccountPage

A Twilio::Page of AccountInstance objects.

records_key

build_instance

Used by Twilio::Page.

AccountContext

Returned by $client->preview_iam->versionless->organization($organization_sid)->accounts($account_sid). It makes no request until one of these methods is called.

fetch

my $account = $client->preview_iam->versionless->organization($organization_sid)->accounts($account_sid)->fetch;

Returns a AccountInstance.

AccountInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

Twilio account sid

date_created

The date and time when the account was created in the system A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

Account friendly name

owner_sid

Twilio account sid

status

Account status One of active, suspended, pending_closure or closed.

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.