NAME

Twilio::Rest::Wireless::V1::Sim::DataSession - The DataSession resource

SYNOPSIS

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

for my $data_session ($client->wireless->v1->sims($sim_sid)->data_sessions->read({}, 20)) {
  ...
}

DESCRIPTION

Data session information for SIMs

This file holds DataSessionList, DataSessionPage and DataSessionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

DataSessionList

Returned by $client->wireless->v1->sims($sim_sid)->data_sessions. See also Twilio::ListResource.

read

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

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

stream

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

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

page

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

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

get_page

my $page = $client->wireless->v1->sims($sim_sid)->data_sessions->get_page($url);

Fetches the page at a URL given by Twilio.

DataSessionPage

A Twilio::Page of DataSessionInstance objects.

records_key

build_instance

Used by Twilio::Page.

DataSessionInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account that created the DataSession resource.

cell_id

The unique ID of the cellular tower that the device was attached to at the moment when the Data Session was last updated.

cell_location_estimate

An object that describes the estimated location in latitude and longitude where the device's Data Session took place. The location is derived from the cell_id when the Data Session was last updated. See Cell Location Estimate Object.

end

The date that the record ended, given as GMT in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

imei

The 'international mobile equipment identity' is the unique ID of the device using the SIM to connect. An IMEI is a 15-digit string: 14 digits for the device identifier plus a check digit calculated using the Luhn formula.

last_updated

The date that the resource was last updated, given as GMT in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

operator_country

The three letter country code representing where the device's Data Session took place. This is determined by looking up the operator_mcc.

operator_mcc

The 'mobile country code' is the unique ID of the home country where the Data Session took place. See: MCC/MNC lookup.

operator_mnc

The 'mobile network code' is the unique ID specific to the mobile operator network where the Data Session took place.

operator_name

The friendly name of the mobile operator network that the SIM-connected device is attached to. This is determined by looking up the operator_mnc.

packets_downloaded

The number of packets downloaded by the device between the start time and when the Data Session was last updated.

packets_uploaded

The number of packets uploaded by the device between the start time and when the Data Session was last updated.

The generation of wireless technology that the device was using.

sid

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

sim_sid

The SID of the Sim resource that the Data Session is for.

start

The date that the Data Session started, given as GMT in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

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.