NAME

Twilio::Rest::Preview::Wireless::Sim - The Sim resource

SYNOPSIS

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

for my $sim ($client->preview->wireless->sims->read({}, 20)) {
  ...
}
my $sim = $client->preview->wireless->sims($sid)->fetch;
$client->preview->wireless->sims($sid)->update(\%options);

DESCRIPTION

This file holds SimList, SimPage, SimContext and SimInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SimList

Returned by $client->preview->wireless->sims. See also Twilio::ListResource.

read

my @records = $client->preview->wireless->sims->read(\%options, $limit, $page_size);

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

The options are:

e_id

No description in the specification.

iccid

No description in the specification.

rate_plan

No description in the specification.

sim_registration_code

No description in the specification.

status

No description in the specification.

stream

my $stream = $client->preview->wireless->sims->stream(\%options, $limit, $page_size);

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

page

my $page = $client->preview->wireless->sims->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->preview->wireless->sims->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->preview->wireless->sims->get_context($sid);

Returns a SimContext, and makes no request.

SimPage

A Twilio::Page of SimInstance objects.

records_key

build_instance

Used by Twilio::Page.

SimContext

Returned by $client->preview->wireless->sims($sid). It makes no request until one of these methods is called.

fetch

my $sim = $client->preview->wireless->sims($sid)->fetch;

Returns a SimInstance.

update

my $sim = $client->preview->wireless->sims($sid)->update(\%options);

Returns a SimInstance.

The options are:

callback_method

No description in the specification.

callback_url

No description in the specification.

commands_callback_method

One of GET or POST.

commands_callback_url

No description in the specification.

friendly_name

No description in the specification.

rate_plan

No description in the specification.

sms_fallback_method

One of GET or POST.

sms_fallback_url

No description in the specification.

sms_method

One of GET or POST.

sms_url

No description in the specification.

status

No description in the specification.

unique_name

No description in the specification.

voice_fallback_method

One of GET or POST.

voice_fallback_url

No description in the specification.

voice_method

One of GET or POST.

voice_url

No description in the specification.

usage

my $context = $object->usage;

See Twilio::Rest::Preview::Wireless::Sim::Usage.

SimInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

No description in the specification.

commands_callback_method

No description in the specification.

commands_callback_url

No description in the specification.

date_created

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

e_id

No description in the specification.

friendly_name

No description in the specification.

iccid

No description in the specification.

No description in the specification.

rate_plan_sid

No description in the specification.

sid

No description in the specification.

sms_fallback_method

One of GET or POST.

sms_fallback_url

No description in the specification.

sms_method

One of GET or POST.

sms_url

No description in the specification.

status

No description in the specification.

unique_name

No description in the specification.

url

No description in the specification.

voice_fallback_method

One of GET or POST.

voice_fallback_url

No description in the specification.

voice_method

One of GET or POST.

voice_url

No description in the specification.

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.