NAME

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

SYNOPSIS

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

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

DESCRIPTION

Messaging 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->messaging->countries. See also Twilio::ListResource.

read

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

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

page

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

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

get_page

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

Fetches the page at a URL given by Twilio.

get_context

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

fetch

my $country = $client->pricing->v1->messaging->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_sms_prices

The list of InboundPrice records that describe the price to receive an inbound SMS to the different Twilio phone number types supported in this country

iso_country

The ISO country code.

outbound_sms_prices

The list of OutboundSMSPrice records that represent the price to send a message for each MCC/MNC applicable in this country.

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.