Twilio/Rest/Numbers/V1/SmsVerification.pm

filter: Statementstmt 100% 35 / 35 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod n/a totaltotal 100% 47 / 47 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Rest/Numbers/V1/SenderIdRegistration.pm ↑ Summary Twilio/Rest/Numbers/V1/SmsVerificationCheck.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Numbers::V1::SmsVerification;
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 our $VERSION = '2.001';
8  
9 package Twilio::Rest::Numbers::V1::SmsVerificationList;
10  
11 2 ▶use parent 'Twilio::ListResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Twilio::Serialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
16 1 my ($class, $version) = @_;
17 1 my $self = $class->SUPER::new($version);
18 1 $self->{solution} = {};
19 1 $self->{uri} = '/CallerIds/SmsVerifications';
20 1 return $self;
21 }
22  
23 1 ▶sub create {
Subroutine create: called CC=1 SCAR=0.0
24 1 my ($self, $body) = @_;
25  
26 1 my $data = Twilio::Serialize::json_body($body, {});
27  
28 my $response = $self->{version}->handle_request(
29 'POST',
30 $self->{uri},
31 1 'create',
32 {
33 data => $data,
34 headers => { 'Content-Type' => 'application/json', }
35 }
36 );
37 return Twilio::Rest::Numbers::V1::SmsVerificationInstance->new($self->{version},
38 1 $response->get_content);
39 }
40  
41 package Twilio::Rest::Numbers::V1::SmsVerificationInstance;
42  
43 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
48 1 my ($class, $version, $payload) = @_;
49 1 my $self = $class->SUPER::new($version, $payload);
50 1 $self->{solution} = {};
51 1 return $self;
52 }
53  
54 1 ▶sub send_code_attempts { return $_[0]{properties}{sendCodeAttempts} }
Subroutine send_code_attempts: called CC=1 SCAR=0.0
55 1 ▶sub to { return $_[0]{properties}{to} }
Subroutine to: called CC=1 SCAR=0.0
56 1 ▶sub verification_sid { return $_[0]{properties}{verificationSid} }
Subroutine verification_sid: called CC=1 SCAR=0.0
57  
58 2 1;
59  
60 __END__
« Twilio/Rest/Numbers/V1/SenderIdRegistration.pm ↑ Summary Twilio/Rest/Numbers/V1/SmsVerificationCheck.pm »