| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Routes::V3; | ||||||||||
| 3 | |||||||||||
| 4 | 3 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | use parent 'Twilio::ApiV1Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 7 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 7 | my ($class, $domain) = @_; | |||||||||
| 13 | 7 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 7 | $self->{version} = 'v3'; | |||||||||
| 15 | 7 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 3 | ▶ | sub iso_country_code { | ||||||||
|
Subroutine
iso_country_code: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 20 | 3 | my ($self, $iso_country_code, $short_code) = @_; | |||||||||
| 21 | 3 | require Twilio::Rest::Routes::V3::IsoCountryCode; | |||||||||
| 22 | 3 | my $list = Twilio::Rest::Routes::V3::IsoCountryCodeList->new($self, $iso_country_code); | |||||||||
| 23 | 3 | ▶ | return defined $short_code ? $list->get_context($short_code) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 4 | ▶ | sub phone_numbers { | ||||||||
|
Subroutine
phone_numbers: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 27 | 4 | my ($self, $phone_number) = @_; | |||||||||
| 28 | 4 | require Twilio::Rest::Routes::V3::PhoneNumber; | |||||||||
| 29 | 4 | my $list = Twilio::Rest::Routes::V3::PhoneNumberList->new($self); | |||||||||
| 30 | 4 | ▶ | return defined $phone_number ? $list->get_context($phone_number) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 3 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||