NAME
Twilio::Rest::Pricing::V1::PhoneNumber::Country - The Country resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $country ($client->pricing->v1->phone_numbers->countries->read({}, 20)) {
...
}
my $country = $client->pricing->v1->phone_numbers->countries($iso_country)->fetch;
DESCRIPTION
Phone number pricing by country
This file holds CountryList, CountryPage, CountryContext and CountryInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CountryList
Returned by $client->pricing->v1->phone_numbers->countries. See also Twilio::ListResource.
read
my @records = $client->pricing->v1->phone_numbers->countries->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->pricing->v1->phone_numbers->countries->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->pricing->v1->phone_numbers->countries->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->pricing->v1->phone_numbers->countries->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->pricing->v1->phone_numbers->countries->get_context($iso_country);
Returns a CountryContext, and makes no request.
CountryPage
A Twilio::Page of CountryInstance objects.
records_key
build_instance
Used by Twilio::Page.
CountryContext
Returned by $client->pricing->v1->phone_numbers->countries($iso_country). It makes no request until one of these methods is called.
fetch
my $country = $client->pricing->v1->phone_numbers->countries($iso_country)->fetch;
Returns a CountryInstance.
CountryInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- country
-
The name of the country.
- iso_country
-
The ISO country code.
- phone_number_prices
-
The list of PhoneNumberPrice records.
- price_unit
-
The currency in which prices are measured, specified in ISO 4127 format (e.g.
usd,eur,jpy). - 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.