« Twilio/Rest/Video/V1/Room/Participant/SubscribeRules.pm
↑ Summary
Twilio/Rest/Trusthub/V1/CustomerProfilesProvisionalCopy.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Memory::V1::Recall; | ||||||||||||
| 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::Memory::V1::RecallList; | ||||||||||||
| 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 | 5 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 5 | my ($class, $version, $store_id, $profile_id) = @_; | |||||||||||
| 17 | 5 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 5 | $self->{solution} = { store_id => $store_id, profile_id => $profile_id }; | |||||||||||
| 19 | 5 | $self->{uri} = join q{}, '/Stores/', Twilio::Serialize::path_segment($store_id), '/Profiles/', | |||||||||||
| 20 | Twilio::Serialize::path_segment($profile_id), '/Recall'; | ||||||||||||
| 21 | 5 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 5 | ▶ | sub create { | ||||||||||
|
Subroutine
create: called CC=2 SCAR=6.9
| |||||||||||||
| 25 | 5 | my ($self, $body, $options) = @_; | |||||||||||
| 26 | 5 | ▶ | $options //= {}; | ||||||||||
|
Condition100%2/2
$options //= {}
MC/DC100%1/1
$options //= {}
$options
Truth table100%2/2
A
A= $options
| |||||||||||||
| 27 | |||||||||||||
| 28 | 5 | my $data = Twilio::Serialize::json_body($body, | |||||||||||
| 29 | { 'beginDate' => 'iso8601_date_time', 'endDate' => 'iso8601_date_time' }); | ||||||||||||
| 30 | |||||||||||||
| 31 | my $response = $self->{version}->handle_request( | ||||||||||||
| 32 | 'POST', | ||||||||||||
| 33 | $self->{uri}, | ||||||||||||
| 34 | 'create', | ||||||||||||
| 35 | { | ||||||||||||
| 36 | data => $data, | ||||||||||||
| 37 | headers => { | ||||||||||||
| 38 | 'Content-Type' => 'application/json', | ||||||||||||
| 39 | 'Accept-Encoding' => $options->{accept_encoding}, | ||||||||||||
| 40 | 'Content-Encoding' => $options->{content_encoding}, | ||||||||||||
| 41 | } | ||||||||||||
| 42 | } | ||||||||||||
| 43 | 5 | ); | |||||||||||
| 44 | return Twilio::Rest::Memory::V1::RecallInstance->new( | ||||||||||||
| 45 | $self->{version}, $response->get_content, | ||||||||||||
| 46 | $self->{solution}{store_id}, $self->{solution}{profile_id} | ||||||||||||
| 47 | 5 | ); | |||||||||||
| 48 | } | ||||||||||||
| 49 | |||||||||||||
| 50 | package Twilio::Rest::Memory::V1::RecallInstance; | ||||||||||||
| 51 | |||||||||||||
| 52 | 3 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 53 | |||||||||||||
| 54 | 3 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 55 | |||||||||||||
| 56 | 5 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 57 | 5 | my ($class, $version, $payload, $store_id, $profile_id) = @_; | |||||||||||
| 58 | 5 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 59 | 5 | $self->{solution} = { store_id => $store_id, profile_id => $profile_id }; | |||||||||||
| 60 | 5 | return $self; | |||||||||||
| 61 | } | ||||||||||||
| 62 | |||||||||||||
| 63 | 7 | ▶ | sub communications { return $_[0]{properties}{communications} } | ||||||||||
|
Subroutine
communications: called CC=1 SCAR=0.0
| |||||||||||||
| 64 | 1 | ▶ | sub message { return $_[0]{properties}{message} } | ||||||||||
|
Subroutine
message: called CC=1 SCAR=0.0
| |||||||||||||
| 65 | 4 | ▶ | sub meta { return $_[0]{properties}{meta} } | ||||||||||
|
Subroutine
meta: called CC=1 SCAR=0.0
| |||||||||||||
| 66 | 1 | ▶ | sub observations { return $_[0]{properties}{observations} } | ||||||||||
|
Subroutine
observations: called CC=1 SCAR=0.0
| |||||||||||||
| 67 | 1 | ▶ | sub summaries { return $_[0]{properties}{summaries} } | ||||||||||
|
Subroutine
summaries: called CC=1 SCAR=0.0
| |||||||||||||
| 68 | 1 | ▶ | sub uri { return $_[0]{properties}{uri} } | ||||||||||
|
Subroutine
uri: called CC=1 SCAR=0.0
| |||||||||||||
| 69 | |||||||||||||
| 70 | 3 | 1; | |||||||||||
| 71 | |||||||||||||
| 72 | __END__ | ||||||||||||