NAME
Twilio::Rest::Api::V2010::Account::Sip::CredentialList - The CredentialList resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $credential_list = $client->sip->credential_lists->create($friendly_name);
for my $credential_list ($client->sip->credential_lists->read({}, 20)) {
...
}
my $credential_list = $client->sip->credential_lists($sid)->fetch;
$client->sip->credential_lists($sid)->update($friendly_name);
$client->sip->credential_lists($sid)->delete;
DESCRIPTION
Lists of SIP credentials
This file holds CredentialListList, CredentialListPage, CredentialListContext and CredentialListInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CredentialListList
Returned by $client->sip->credential_lists. See also Twilio::ListResource.
create
my $credential_list = $client->sip->credential_lists->create($friendly_name);
Create a Credential List. Returns a CredentialListInstance.
The required values are:
$friendly_name-
A human readable descriptive text that describes the CredentialList, up to 64 characters long.
read
my @records = $client->sip->credential_lists->read(\%options, $limit, $page_size);
Get All Credential Lists. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->sip->credential_lists->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->sip->credential_lists->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->sip->credential_lists->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->sip->credential_lists->get_context($sid);
Returns a CredentialListContext, and makes no request.
CredentialListPage
A Twilio::Page of CredentialListInstance objects.
records_key
build_instance
Used by Twilio::Page.
CredentialListContext
Returned by $client->sip->credential_lists($sid). It makes no request until one of these methods is called.
fetch
my $credential_list = $client->sip->credential_lists($sid)->fetch;
Get a Credential List. Returns a CredentialListInstance.
update
my $credential_list = $client->sip->credential_lists($sid)->update($friendly_name);
Update a Credential List. Returns a CredentialListInstance.
The required values are:
delete
$client->sip->credential_lists($sid)->delete;
Delete a Credential List. Returns true.
credentials
my $list = $object->credentials;
my $context = $object->credentials($sid);
See Twilio::Rest::Api::V2010::Account::Sip::CredentialList::Credential.
CredentialListInstance
See also Twilio::InstanceResource.
It has fetch, update, delete and credentials, which work as they do on the context.
Its fields are:
- account_sid
-
The unique id of the Account that owns this resource.
- date_created
-
The date that this resource was created, given as GMT in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that this resource was last updated, given as GMT in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
A human readable descriptive text that describes the CredentialList, up to 64 characters long.
- sid
-
A 34 character string that uniquely identifies this resource.
- subresource_uris
-
A list of credentials associated with this credential list.
- uri
-
The URI for this resource, relative to
https://api.twilio.com.
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.