| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Conversations::V1; | ||||||||||
| 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::Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 106 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 106 | my ($class, $domain) = @_; | |||||||||
| 13 | 106 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 106 | $self->{version} = 'v1'; | |||||||||
| 15 | 106 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 5 | ▶ | sub address_configurations { | ||||||||
|
Subroutine
address_configurations: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 5 | my ($self, $sid) = @_; | |||||||||
| 21 | 5 | require Twilio::Rest::Conversations::V1::AddressConfiguration; | |||||||||
| 22 | 5 | my $list = Twilio::Rest::Conversations::V1::AddressConfigurationList->new($self); | |||||||||
| 23 | 5 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 4 | ▶ | sub configuration { | ||||||||
|
Subroutine
configuration: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 27 | 4 | my ($self) = @_; | |||||||||
| 28 | 4 | require Twilio::Rest::Conversations::V1::Configuration; | |||||||||
| 29 | 4 | return Twilio::Rest::Conversations::V1::ConfigurationContext->new($self); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 23 | ▶ | sub conversations { | ||||||||
|
Subroutine
conversations: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 33 | 23 | my ($self, $sid) = @_; | |||||||||
| 34 | 23 | require Twilio::Rest::Conversations::V1::Conversation; | |||||||||
| 35 | 23 | my $list = Twilio::Rest::Conversations::V1::ConversationList->new($self); | |||||||||
| 36 | 23 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 2 | ▶ | sub conversation_with_participants { | ||||||||
|
Subroutine
conversation_with_participants: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 40 | 2 | my ($self) = @_; | |||||||||
| 41 | 2 | require Twilio::Rest::Conversations::V1::ConversationWithParticipants; | |||||||||
| 42 | 2 | return Twilio::Rest::Conversations::V1::ConversationWithParticipantsList->new($self); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 5 | ▶ | sub credentials { | ||||||||
|
Subroutine
credentials: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 46 | 5 | my ($self, $sid) = @_; | |||||||||
| 47 | 5 | require Twilio::Rest::Conversations::V1::Credential; | |||||||||
| 48 | 5 | my $list = Twilio::Rest::Conversations::V1::CredentialList->new($self); | |||||||||
| 49 | 5 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | 1 | ▶ | sub participant_conversations { | ||||||||
|
Subroutine
participant_conversations: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 53 | 1 | my ($self) = @_; | |||||||||
| 54 | 1 | require Twilio::Rest::Conversations::V1::ParticipantConversation; | |||||||||
| 55 | 1 | return Twilio::Rest::Conversations::V1::ParticipantConversationList->new($self); | |||||||||
| 56 | } | ||||||||||
| 57 | |||||||||||
| 58 | 5 | ▶ | sub roles { | ||||||||
|
Subroutine
roles: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 59 | 5 | my ($self, $sid) = @_; | |||||||||
| 60 | 5 | require Twilio::Rest::Conversations::V1::Role; | |||||||||
| 61 | 5 | my $list = Twilio::Rest::Conversations::V1::RoleList->new($self); | |||||||||
| 62 | 5 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 63 | } | ||||||||||
| 64 | |||||||||||
| 65 | 52 | ▶ | sub services { | ||||||||
|
Subroutine
services: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 66 | 52 | my ($self, $sid) = @_; | |||||||||
| 67 | 52 | require Twilio::Rest::Conversations::V1::Service; | |||||||||
| 68 | 52 | my $list = Twilio::Rest::Conversations::V1::ServiceList->new($self); | |||||||||
| 69 | 52 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 70 | } | ||||||||||
| 71 | |||||||||||
| 72 | 9 | ▶ | sub users { | ||||||||
|
Subroutine
users: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 73 | 9 | my ($self, $sid) = @_; | |||||||||
| 74 | 9 | require Twilio::Rest::Conversations::V1::User; | |||||||||
| 75 | 9 | my $list = Twilio::Rest::Conversations::V1::UserList->new($self); | |||||||||
| 76 | 9 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 77 | } | ||||||||||
| 78 | |||||||||||
| 79 | 3 | 1; | |||||||||
| 80 | |||||||||||
| 81 | __END__ | ||||||||||