NAME
Twilio::Rest::Supersim::V1::Network - The Network resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $network ($client->supersim->v1->networks->read({}, 20)) {
...
}
my $network = $client->supersim->v1->networks($sid)->fetch;
DESCRIPTION
Mobile operator networks to which Super SIMs can connect
This file holds NetworkList, NetworkPage, NetworkContext and NetworkInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
NetworkList
Returned by $client->supersim->v1->networks. See also Twilio::ListResource.
read
my @records = $client->supersim->v1->networks->read(\%options, $limit, $page_size);
Retrieve a list of Network resources. Returns the records as a list, fetching as many pages as it needs.
The options are:
iso_country-
The ISO country code of the Network resources to read.
mcc-
The 'mobile country code' of a country. Network resources with this
mccin theiridentifierswill be read. mnc-
The 'mobile network code' of a mobile operator network. Network resources with this
mncin theiridentifierswill be read.
stream
my $stream = $client->supersim->v1->networks->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->supersim->v1->networks->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->supersim->v1->networks->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->supersim->v1->networks->get_context($sid);
Returns a NetworkContext, and makes no request.
NetworkPage
A Twilio::Page of NetworkInstance objects.
records_key
build_instance
Used by Twilio::Page.
NetworkContext
Returned by $client->supersim->v1->networks($sid). It makes no request until one of these methods is called.
fetch
my $network = $client->supersim->v1->networks($sid)->fetch;
Fetch a Network resource. Returns a NetworkInstance.
NetworkInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- friendly_name
-
A human readable identifier of this resource.
- identifiers
-
Array of objects identifying the MCC-MNCs that are included in the Network resource.
- iso_country
-
The ISO country code of the Network resource.
- sid
-
The unique string that we created to identify the Network resource.
- url
-
The absolute URL of the Network resource.
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.