NAME

Twilio::Rest::Pricing::V1::Voice::Country - The Country resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $country ($client->pricing->v1->voice->countries->read({}, 20)) {
  ...
}
my $country = $client->pricing->v1->voice->countries($iso_country)->fetch;

DESCRIPTION

Voice 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->voice->countries. See also Twilio::ListResource.

read

my @records = $client->pricing->v1->voice->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->voice->countries->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->pricing->v1->voice->countries->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->pricing->v1->voice->countries->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->pricing->v1->voice->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->voice->countries($iso_country). It makes no request until one of these methods is called.

fetch

my $country = $client->pricing->v1->voice->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.

inbound_call_prices

The list of InboundCallPrice records.

iso_country

The ISO country code.

outbound_prefix_prices

The list of OutboundPrefixPrice records, which include a list of the prefixes, the friendly_name, base_price, and the current_price for those prefixes.

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.