| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Conversations::V2; | ||||||||||
| 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::ApiV1Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 22 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 22 | my ($class, $domain) = @_; | |||||||||
| 13 | 22 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 22 | $self->{version} = 'v2'; | |||||||||
| 15 | 22 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 2 | ▶ | sub actions { | ||||||||
|
Subroutine
actions: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 2 | my ($self, $conversation_id, $action_id) = @_; | |||||||||
| 21 | 2 | require Twilio::Rest::Conversations::V2::Action; | |||||||||
| 22 | 2 | my $list = Twilio::Rest::Conversations::V2::ActionList->new($self, $conversation_id); | |||||||||
| 23 | 2 | ▶ | return defined $action_id ? $list->get_context($action_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 3 | ▶ | sub communications { | ||||||||
|
Subroutine
communications: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 27 | 3 | my ($self, $conversation_id, $id) = @_; | |||||||||
| 28 | 3 | require Twilio::Rest::Conversations::V2::Communication; | |||||||||
| 29 | 3 | my $list = Twilio::Rest::Conversations::V2::CommunicationList->new($self, $conversation_id); | |||||||||
| 30 | 3 | ▶ | return defined $id ? $list->get_context($id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 6 | ▶ | sub configurations { | ||||||||
|
Subroutine
configurations: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 34 | 6 | my ($self, $id) = @_; | |||||||||
| 35 | 6 | require Twilio::Rest::Conversations::V2::Configuration; | |||||||||
| 36 | 6 | my $list = Twilio::Rest::Conversations::V2::ConfigurationList->new($self); | |||||||||
| 37 | 6 | ▶ | return defined $id ? $list->get_context($id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 6 | ▶ | sub conversations { | ||||||||
|
Subroutine
conversations: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 41 | 6 | my ($self, $id) = @_; | |||||||||
| 42 | 6 | require Twilio::Rest::Conversations::V2::Conversation; | |||||||||
| 43 | 6 | my $list = Twilio::Rest::Conversations::V2::ConversationList->new($self); | |||||||||
| 44 | 6 | ▶ | return defined $id ? $list->get_context($id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 1 | ▶ | sub operations { | ||||||||
|
Subroutine
operations: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 48 | 1 | my ($self, $id) = @_; | |||||||||
| 49 | 1 | require Twilio::Rest::Conversations::V2::Operation; | |||||||||
| 50 | 1 | my $list = Twilio::Rest::Conversations::V2::OperationList->new($self); | |||||||||
| 51 | 1 | ▶ | return defined $id ? $list->get_context($id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | 4 | ▶ | sub participants { | ||||||||
|
Subroutine
participants: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 55 | 4 | my ($self, $conversation_id, $id) = @_; | |||||||||
| 56 | 4 | require Twilio::Rest::Conversations::V2::Participant; | |||||||||
| 57 | 4 | my $list = Twilio::Rest::Conversations::V2::ParticipantList->new($self, $conversation_id); | |||||||||
| 58 | 4 | ▶ | return defined $id ? $list->get_context($id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 59 | } | ||||||||||
| 60 | |||||||||||
| 61 | 2 | 1; | |||||||||
| 62 | |||||||||||
| 63 | __END__ | ||||||||||