| 1 | package Tomba::Verifier; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 4 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 4 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 4 | ▶ | use parent 'Tomba::Client'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | =head1 NAME | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | Tomba::Verifier - Email verification for the Tomba.io API | ||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | use Tomba::Verifier; | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | my $tomba = Tomba::Verifier->new("ta_xxxxx", "ts_xxxxx"); | ||||||||||||||||||||||||||||
| 16 | my $verified = $tomba->EmailVerifier("b.mohamed@tomba.io"); | ||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | Verify the deliverability of an email address. | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | =cut | ||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | #------------------------------------------------------------------------------- | ||||||||||||||||||||||||||||
| 25 | # Email Verifier | ||||||||||||||||||||||||||||
| 26 | #------------------------------------------------------------------------------- | ||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | =head2 EmailVerifier | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | my $data = $tomba->EmailVerifier("b.mohamed@tomba.io"); | ||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | Verify the deliverability of an email address. | ||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | See L<https://docs.tomba.io/api/verifier#get-email-verifier> | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | =cut | ||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||
| 38 | 0 | ▶ | sub EmailVerifier { | ||||||||||||||||||||||||||
|
Subroutine
EmailVerifier: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||||||||||||||||||||
| 39 | 0 | my ($self, $email, $opts) = @_; | |||||||||||||||||||||||||||
| 40 | 0 | my $params = { | |||||||||||||||||||||||||||
| 41 | email => $email, | ||||||||||||||||||||||||||||
| 42 | }; | ||||||||||||||||||||||||||||
| 43 | 0 | ▶ | if ($opts && ref($opts) eq 'HASH') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$opts and ref $opts eq "HASH"
MC/DC0%0/2
$opts and ref $opts eq "HASH"
$opts
ref $opts eq "HASH"
Truth table0%0/3
A and B
A= $optsB= ref $opts eq "HASH"
| |||||||||||||||||||||||||||||
| 44 | 0 | ▶ | $params->{webhook_url} = $opts->{webhook_url} if exists $opts->{webhook_url}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 45 | } | ||||||||||||||||||||||||||||
| 46 | 0 | return $self->call(Tomba::Client::VERIFIER_PATH, $params); | |||||||||||||||||||||||||||
| 47 | } | ||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||
| 49 | 4 | 1; | |||||||||||||||||||||||||||
| 50 | __END__ | ||||||||||||||||||||||||||||