NAME
Twilio::Rest::Sync::V1::Service::SyncList - The SyncList resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $sync_list = $client->sync->v1->services($service_sid)->sync_lists->create(\%options);
for my $sync_list ($client->sync->v1->services($service_sid)->sync_lists->read({}, 20)) {
...
}
my $sync_list = $client->sync->v1->services($service_sid)->sync_lists($sid)->fetch;
$client->sync->v1->services($service_sid)->sync_lists($sid)->update(\%options);
$client->sync->v1->services($service_sid)->sync_lists($sid)->delete;
DESCRIPTION
Sync list objects
This file holds SyncListList, SyncListPage, SyncListContext and SyncListInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
SyncListList
Returned by $client->sync->v1->services($service_sid)->sync_lists. See also Twilio::ListResource.
create
my $sync_list = $client->sync->v1->services($service_sid)->sync_lists->create(\%options);
Returns a SyncListInstance.
The options are:
collection_ttl-
How long, in seconds, before the Sync List expires (time-to-live) and is deleted.
ttl-
Alias for collection_ttl. If both are provided, this value is ignored.
unique_name-
An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The
unique_namevalue can be used as an alternative to thesidin the URL path to address the resource.
read
my @records = $client->sync->v1->services($service_sid)->sync_lists->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->sync->v1->services($service_sid)->sync_lists->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->sync->v1->services($service_sid)->sync_lists->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->sync->v1->services($service_sid)->sync_lists->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->sync->v1->services($service_sid)->sync_lists->get_context($sid);
Returns a SyncListContext, and makes no request.
SyncListPage
A Twilio::Page of SyncListInstance objects.
records_key
build_instance
Used by Twilio::Page.
SyncListContext
Returned by $client->sync->v1->services($service_sid)->sync_lists($sid). It makes no request until one of these methods is called.
fetch
my $sync_list = $client->sync->v1->services($service_sid)->sync_lists($sid)->fetch;
Returns a SyncListInstance.
update
my $sync_list = $client->sync->v1->services($service_sid)->sync_lists($sid)->update(\%options);
Returns a SyncListInstance.
The options are:
collection_ttl-
How long, in seconds, before the Sync List expires (time-to-live) and is deleted.
ttl-
An alias for
collection_ttl. If both are provided, this value is ignored.
delete
$client->sync->v1->services($service_sid)->sync_lists($sid)->delete;
Returns true.
sync_list_items
my $list = $object->sync_list_items;
my $context = $object->sync_list_items($index);
See Twilio::Rest::Sync::V1::Service::SyncList::SyncListItem.
sync_list_permissions
my $list = $object->sync_list_permissions;
my $context = $object->sync_list_permissions($identity);
See Twilio::Rest::Sync::V1::Service::SyncList::SyncListPermission.
SyncListInstance
See also Twilio::InstanceResource.
It has fetch, update, delete, sync_list_items and sync_list_permissions, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Sync List resource.
- created_by
-
The identity of the Sync List's creator. If the Sync List is created from the client SDK, the value matches the Access Token's
identityfield. If the Sync List was created from the REST API, the value issystem. - date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_expires
-
The date and time in GMT when the Sync List expires and will be deleted, specified in ISO 8601 format. If the Sync List does not expire, this value is
null. The Sync List might not be deleted immediately after it expires. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize. - date_updated
-
The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- links
-
The URLs of the Sync List's nested resources.
- revision
-
The current revision of the Sync List, represented as a string.
- service_sid
-
The SID of the Sync Service the resource is associated with.
- sid
-
The unique string that we created to identify the Sync List resource.
- unique_name
-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource. - url
-
The absolute URL of the Sync List 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.