« Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestion.pm
↑ Summary
Twilio/Rest/FlexApi/V1/PluginRelease.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Api::V2010::Account::Conference; | ||||||||||||||||||||
| 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 | our $VERSION = '2.001'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | package Twilio::Rest::Api::V2010::Account::ConferenceList; | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 3 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 3 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 13 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 13 | my ($class, $version, $account_sid) = @_; | |||||||||||||||||||
| 17 | 13 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 13 | $self->{solution} = { account_sid => $account_sid }; | |||||||||||||||||||
| 19 | 13 | $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid), | |||||||||||||||||||
| 20 | '/Conferences.json'; | ||||||||||||||||||||
| 21 | 13 | return $self; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | ▶ | sub read { | ||||||||||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 25 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 26 | 0 | return $self->read_records(@arguments); | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 0 | ▶ | sub stream { | ||||||||||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 30 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 31 | 0 | return $self->stream_records(@arguments); | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 1 | ▶ | sub page { | ||||||||||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 35 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||||||||||
| 36 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | my $params = { | ||||||||||||||||||||
| 39 | DateCreated => Twilio::Serialize::iso8601_date($options->{date_created}), | ||||||||||||||||||||
| 40 | 'DateCreated<' => Twilio::Serialize::iso8601_date($options->{date_created_before}), | ||||||||||||||||||||
| 41 | 'DateCreated>' => Twilio::Serialize::iso8601_date($options->{date_created_after}), | ||||||||||||||||||||
| 42 | DateUpdated => Twilio::Serialize::iso8601_date($options->{date_updated}), | ||||||||||||||||||||
| 43 | 'DateUpdated<' => Twilio::Serialize::iso8601_date($options->{date_updated_before}), | ||||||||||||||||||||
| 44 | 'DateUpdated>' => Twilio::Serialize::iso8601_date($options->{date_updated_after}), | ||||||||||||||||||||
| 45 | FriendlyName => $options->{friendly_name}, | ||||||||||||||||||||
| 46 | Status => $options->{status}, | ||||||||||||||||||||
| 47 | 1 | PageToken => $page_token, | |||||||||||||||||||
| 48 | Page => $page_number, | ||||||||||||||||||||
| 49 | PageSize => $page_size, | ||||||||||||||||||||
| 50 | }; | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||||||||||
| 53 | 1 | return $self->_build_page($response); | |||||||||||||||||||
| 54 | } | ||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | 0 | ▶ | sub get_page { | ||||||||||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 57 | 0 | my ($self, $target_url) = @_; | |||||||||||||||||||
| 58 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||||||||||
| 59 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||||||||||
| 60 | } | ||||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | 1 | ▶ | sub _build_page { | ||||||||||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 63 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 64 | return Twilio::Rest::Api::V2010::Account::ConferencePage->new($self->{version}, $response, | ||||||||||||||||||||
| 65 | 1 | $self->{solution}); | |||||||||||||||||||
| 66 | } | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | 12 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 69 | 12 | my ($self, $sid) = @_; | |||||||||||||||||||
| 70 | return Twilio::Rest::Api::V2010::Account::ConferenceContext->new($self->{version}, | ||||||||||||||||||||
| 71 | 12 | $self->{solution}{account_sid}, $sid); | |||||||||||||||||||
| 72 | } | ||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | package Twilio::Rest::Api::V2010::Account::ConferencePage; | ||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | 3 | ▶ | use parent 'Twilio::Page'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 77 | |||||||||||||||||||||
| 78 | 1 | ▶ | sub records_key { return 'conferences' } | ||||||||||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | 1 | ▶ | sub build_instance { | ||||||||||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 81 | 1 | my ($self, $payload) = @_; | |||||||||||||||||||
| 82 | return Twilio::Rest::Api::V2010::Account::ConferenceInstance->new($self->{version}, $payload, | ||||||||||||||||||||
| 83 | 1 | $self->{solution}{account_sid}); | |||||||||||||||||||
| 84 | } | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | package Twilio::Rest::Api::V2010::Account::ConferenceContext; | ||||||||||||||||||||
| 87 | |||||||||||||||||||||
| 88 | 3 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | 3 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 91 | |||||||||||||||||||||
| 92 | 12 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 93 | 12 | my ($class, $version, $account_sid, $sid) = @_; | |||||||||||||||||||
| 94 | 12 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 95 | 12 | $self->{solution} = { account_sid => $account_sid, sid => $sid }; | |||||||||||||||||||
| 96 | 12 | $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid), | |||||||||||||||||||
| 97 | '/Conferences/', Twilio::Serialize::path_segment($sid), '.json'; | ||||||||||||||||||||
| 98 | 12 | return $self; | |||||||||||||||||||
| 99 | } | ||||||||||||||||||||
| 100 | |||||||||||||||||||||
| 101 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 102 | 1 | my ($self) = @_; | |||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||||||||||
| 105 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 106 | } | ||||||||||||||||||||
| 107 | |||||||||||||||||||||
| 108 | 1 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 109 | 1 | my ($self, $options) = @_; | |||||||||||||||||||
| 110 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 111 | |||||||||||||||||||||
| 112 | my $data = { | ||||||||||||||||||||
| 113 | AnnounceMethod => $options->{announce_method}, | ||||||||||||||||||||
| 114 | AnnounceUrl => $options->{announce_url}, | ||||||||||||||||||||
| 115 | Status => $options->{status}, | ||||||||||||||||||||
| 116 | 1 | }; | |||||||||||||||||||
| 117 | |||||||||||||||||||||
| 118 | my $response = | ||||||||||||||||||||
| 119 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data }); | |||||||||||||||||||
| 120 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 121 | } | ||||||||||||||||||||
| 122 | |||||||||||||||||||||
| 123 | 2 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 124 | 2 | my ($self, $response) = @_; | |||||||||||||||||||
| 125 | return Twilio::Rest::Api::V2010::Account::ConferenceInstance->new( | ||||||||||||||||||||
| 126 | $self->{version}, $response->get_content, | ||||||||||||||||||||
| 127 | $self->{solution}{account_sid}, $self->{solution}{sid} | ||||||||||||||||||||
| 128 | 2 | ); | |||||||||||||||||||
| 129 | } | ||||||||||||||||||||
| 130 | |||||||||||||||||||||
| 131 | 6 | ▶ | sub participants { | ||||||||||||||||||
|
Subroutine
participants: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 132 | 6 | my ($self, $call_sid) = @_; | |||||||||||||||||||
| 133 | 6 | require Twilio::Rest::Api::V2010::Account::Conference::Participant; | |||||||||||||||||||
| 134 | my $list = Twilio::Rest::Api::V2010::Account::Conference::ParticipantList->new( | ||||||||||||||||||||
| 135 | $self->{version}, | ||||||||||||||||||||
| 136 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 137 | $self->{solution}{sid} | ||||||||||||||||||||
| 138 | 6 | ); | |||||||||||||||||||
| 139 | 6 | ▶ | return defined $call_sid ? $list->get_context($call_sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 140 | } | ||||||||||||||||||||
| 141 | |||||||||||||||||||||
| 142 | 4 | ▶ | sub recordings { | ||||||||||||||||||
|
Subroutine
recordings: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 143 | 4 | my ($self, $sid) = @_; | |||||||||||||||||||
| 144 | 4 | require Twilio::Rest::Api::V2010::Account::Conference::Recording; | |||||||||||||||||||
| 145 | my $list = Twilio::Rest::Api::V2010::Account::Conference::RecordingList->new( | ||||||||||||||||||||
| 146 | $self->{version}, | ||||||||||||||||||||
| 147 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 148 | $self->{solution}{sid} | ||||||||||||||||||||
| 149 | 4 | ); | |||||||||||||||||||
| 150 | 4 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 151 | } | ||||||||||||||||||||
| 152 | |||||||||||||||||||||
| 153 | package Twilio::Rest::Api::V2010::Account::ConferenceInstance; | ||||||||||||||||||||
| 154 | |||||||||||||||||||||
| 155 | 3 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 156 | |||||||||||||||||||||
| 157 | 3 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 158 | |||||||||||||||||||||
| 159 | 3 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 160 | 3 | my ($class, $version, $payload, $account_sid, $sid) = @_; | |||||||||||||||||||
| 161 | 3 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 162 | 3 | ▶ | $self->{solution} = { account_sid => $account_sid, sid => $sid // $self->{properties}{sid} }; | ||||||||||||||||||
|
Condition66%2/3
$sid // $self->{"properties"}{"sid"}
MC/DC0%0/2
$sid // $self->{"properties"}{"sid"}
$sid
$self->{"properties"}{"sid"}
Truth table66%2/3
A // B
A= $sidB= $self->{"properties"}{"sid"}
| |||||||||||||||||||||
| 163 | 3 | return $self; | |||||||||||||||||||
| 164 | } | ||||||||||||||||||||
| 165 | |||||||||||||||||||||
| 166 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 167 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 168 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 169 | } | ||||||||||||||||||||
| 170 | |||||||||||||||||||||
| 171 | 0 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 172 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 173 | 0 | return $self->_context->update(@arguments); | |||||||||||||||||||
| 174 | } | ||||||||||||||||||||
| 175 | |||||||||||||||||||||
| 176 | 0 | ▶ | sub participants { | ||||||||||||||||||
|
Subroutine
participants: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 177 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 178 | 0 | return $self->_context->participants(@arguments); | |||||||||||||||||||
| 179 | } | ||||||||||||||||||||
| 180 | |||||||||||||||||||||
| 181 | 0 | ▶ | sub recordings { | ||||||||||||||||||
|
Subroutine
recordings: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 182 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 183 | 0 | return $self->_context->recordings(@arguments); | |||||||||||||||||||
| 184 | } | ||||||||||||||||||||
| 185 | |||||||||||||||||||||
| 186 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 187 | 0 | my ($self) = @_; | |||||||||||||||||||
| 188 | return Twilio::Rest::Api::V2010::Account::ConferenceContext->new( | ||||||||||||||||||||
| 189 | $self->{version}, | ||||||||||||||||||||
| 190 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 191 | $self->{solution}{sid} | ||||||||||||||||||||
| 192 | 0 | ); | |||||||||||||||||||
| 193 | } | ||||||||||||||||||||
| 194 | |||||||||||||||||||||
| 195 | 3 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 196 | 3 | ▶ | sub api_version { return $_[0]{properties}{api_version} } | ||||||||||||||||||
|
Subroutine
api_version: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 197 | 3 | ▶ | sub call_sid_ending_conference { return $_[0]{properties}{call_sid_ending_conference} } | ||||||||||||||||||
|
Subroutine
call_sid_ending_conference: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 198 | 3 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 199 | 3 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 200 | 3 | ▶ | sub friendly_name { return $_[0]{properties}{friendly_name} } | ||||||||||||||||||
|
Subroutine
friendly_name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 201 | 3 | ▶ | sub reason_conference_ended { return $_[0]{properties}{reason_conference_ended} } | ||||||||||||||||||
|
Subroutine
reason_conference_ended: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 202 | 3 | ▶ | sub region { return $_[0]{properties}{region} } | ||||||||||||||||||
|
Subroutine
region: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 203 | 3 | ▶ | sub sid { return $_[0]{properties}{sid} } | ||||||||||||||||||
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 204 | 3 | ▶ | sub status { return $_[0]{properties}{status} } | ||||||||||||||||||
|
Subroutine
status: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 205 | 3 | ▶ | sub subresource_uris { return $_[0]{properties}{subresource_uris} } | ||||||||||||||||||
|
Subroutine
subresource_uris: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 206 | 3 | ▶ | sub uri { return $_[0]{properties}{uri} } | ||||||||||||||||||
|
Subroutine
uri: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 207 | |||||||||||||||||||||
| 208 | 3 | 1; | |||||||||||||||||||
| 209 | |||||||||||||||||||||
| 210 | __END__ | ||||||||||||||||||||