NAME
Twilio::Rest::Verify::V2::Service::MessagingConfiguration - The MessagingConfiguration resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $messaging_configuration = $client->verify->v2->services($service_sid)->messaging_configurations->create($country, $messaging_service_sid);
for my $messaging_configuration ($client->verify->v2->services($service_sid)->messaging_configurations->read({}, 20)) {
...
}
my $messaging_configuration = $client->verify->v2->services($service_sid)->messaging_configurations($country)->fetch;
$client->verify->v2->services($service_sid)->messaging_configurations($country)->update($messaging_service_sid);
$client->verify->v2->services($service_sid)->messaging_configurations($country)->delete;
DESCRIPTION
This file holds MessagingConfigurationList, MessagingConfigurationPage, MessagingConfigurationContext and MessagingConfigurationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
MessagingConfigurationList
Returned by $client->verify->v2->services($service_sid)->messaging_configurations. See also Twilio::ListResource.
create
my $messaging_configuration = $client->verify->v2->services($service_sid)->messaging_configurations->create($country, $messaging_service_sid);
Create a new MessagingConfiguration for a service. Returns a MessagingConfigurationInstance.
The required values are:
$country-
The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value
all. $messaging_service_sid-
The SID of the Messaging Service to be used to send SMS to the country of this configuration.
read
my @records = $client->verify->v2->services($service_sid)->messaging_configurations->read(\%options, $limit, $page_size);
Retrieve a list of all Messaging Configurations for a Service. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->verify->v2->services($service_sid)->messaging_configurations->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->verify->v2->services($service_sid)->messaging_configurations->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->verify->v2->services($service_sid)->messaging_configurations->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->verify->v2->services($service_sid)->messaging_configurations->get_context($country);
Returns a MessagingConfigurationContext, and makes no request.
MessagingConfigurationPage
A Twilio::Page of MessagingConfigurationInstance objects.
records_key
build_instance
Used by Twilio::Page.
MessagingConfigurationContext
Returned by $client->verify->v2->services($service_sid)->messaging_configurations($country). It makes no request until one of these methods is called.
fetch
my $messaging_configuration = $client->verify->v2->services($service_sid)->messaging_configurations($country)->fetch;
Fetch a specific MessagingConfiguration. Returns a MessagingConfigurationInstance.
update
my $messaging_configuration = $client->verify->v2->services($service_sid)->messaging_configurations($country)->update($messaging_service_sid);
Update a specific MessagingConfiguration. Returns a MessagingConfigurationInstance.
The required values are:
$messaging_service_sid-
The SID of the Messaging Service to be used to send SMS to the country of this configuration.
delete
$client->verify->v2->services($service_sid)->messaging_configurations($country)->delete;
Delete a specific MessagingConfiguration. Returns true.
MessagingConfigurationInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Service resource.
- country
-
The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value
all. - date_created
-
The date and time in GMT when the resource was created specified in RFC 2822 format. 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 RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- messaging_service_sid
-
The SID of the Messaging Service to be used to send SMS to the country of this configuration.
- service_sid
-
The SID of the Service that the resource is associated with.
- url
-
The URL of this 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.