| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Content::V1; | ||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 2 | ▶ | use parent 'Twilio::Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 10 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 10 | my ($class, $domain) = @_; | |||||||||
| 13 | 10 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 10 | $self->{version} = 'v1'; | |||||||||
| 15 | 10 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 8 | ▶ | sub contents { | ||||||||
|
Subroutine
contents: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 8 | my ($self, $sid) = @_; | |||||||||
| 21 | 8 | require Twilio::Rest::Content::V1::Content; | |||||||||
| 22 | 8 | my $list = Twilio::Rest::Content::V1::ContentList->new($self); | |||||||||
| 23 | 8 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | sub content_and_approvals { | ||||||||
|
Subroutine
content_and_approvals: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 27 | 1 | my ($self) = @_; | |||||||||
| 28 | 1 | require Twilio::Rest::Content::V1::ContentAndApprovals; | |||||||||
| 29 | 1 | return Twilio::Rest::Content::V1::ContentAndApprovalsList->new($self); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 1 | ▶ | sub legacy_contents { | ||||||||
|
Subroutine
legacy_contents: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 33 | 1 | my ($self) = @_; | |||||||||
| 34 | 1 | require Twilio::Rest::Content::V1::LegacyContent; | |||||||||
| 35 | 1 | return Twilio::Rest::Content::V1::LegacyContentList->new($self); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 2 | 1; | |||||||||
| 39 | |||||||||||
| 40 | __END__ | ||||||||||