NAME
Twilio::Rest::Routes::V3::IsoCountryCode - The IsoCountryCode resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $iso_country_code = $client->routes->v3->iso_country_code($iso_country_code, $short_code)->fetch;
$client->routes->v3->iso_country_code($iso_country_code, $short_code)->update(\%options);
DESCRIPTION
This file holds IsoCountryCodeList, IsoCountryCodeContext and IsoCountryCodeInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
IsoCountryCodeList
Returned by $client->routes->v3->iso_country_code($iso_country_code). See also Twilio::ListResource.
get_context
my $context = $client->routes->v3->iso_country_code($iso_country_code)->get_context($short_code);
Returns a IsoCountryCodeContext, and makes no request.
IsoCountryCodeContext
Returned by $client->routes->v3->iso_country_code($iso_country_code, $short_code). It makes no request until one of these methods is called.
fetch
my $iso_country_code = $client->routes->v3->iso_country_code($iso_country_code, $short_code)->fetch;
Fetch the Processing Region assigned to a short code. Short codes only support a Messaging region; Voice is not supported. Returns a IsoCountryCodeInstance.
update
my $iso_country_code = $client->routes->v3->iso_country_code($iso_country_code, $short_code)->update(\%options);
Assign an Processing Region to a short code. Short codes only support a Messaging region; Voice is not supported. Returns a IsoCountryCodeInstance.
The options are:
friendly_name-
A human readable description of this resource, up to 64 characters.
messaging_region-
The Processing Region used for this short code for messaging
IsoCountryCodeInstance
See also Twilio::InstanceResource.
It has fetch and update, which work as they do on the context.
Its fields are:
- account_sid
-
The unique SID identifier of the Account.
- date_created
-
The date that this short code was assigned an Inbound Processing Region, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that the Inbound Processing Region was updated for this short code, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
A human readable description of the Inbound Processing Region assignment for this short code, up to 64 characters.
- iso_country_code
-
The ISO country code of the short code
- messaging_region
-
The Inbound Processing Region used for this short code for messaging.
- short_code
-
The short code
- url
-
The absolute URL of the 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.