Flag.pm

filter: Statementstmt 71.4% 10 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 71.4% 15 / 21 CC 1 SCAR 3.4
CC
1
Cov
71%
ListFlags
2.0
CreateFlag
2.0
BEGIN
1.0
CRAP 1.4
« Status.pm ↑ Summary Count.pm »
1 package Tomba::Flag;
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::Flag - Data flags for the Tomba.io API
10  
11 =head1 SYNOPSIS
12  
13 use Tomba::Flag;
14  
15 my $tomba = Tomba::Flag->new("ta_xxxxx", "ts_xxxxx");
16 my $flags = $tomba->ListFlags();
17  
18 =head1 DESCRIPTION
19  
20 Report incorrect data such as hard bounces, invalid emails, or wrong organization info.
21  
22 =cut
23  
24 #-------------------------------------------------------------------------------
25 # Flags
26 #-------------------------------------------------------------------------------
27  
28 =head2 ListFlags
29  
30 my $data = $tomba->ListFlags();
31 my $data = $tomba->ListFlags({ page => 1, limit => 10 });
32  
33 Returns a paginated list of data flags submitted by the authenticated user.
34  
35 See L<https://docs.tomba.io/api/flag#get-flag>
36  
37 =cut
38  
39 0 ▶sub ListFlags {
Subroutine ListFlags: not called CC=1 SCAR=6.9
Pod documented
40 0 my ($self, $params) = @_;
41 0 return $self->call(Tomba::Client::FLAG_PATH, $params);
42 }
43  
44 =head2 CreateFlag
45  
46 my $data = $tomba->CreateFlag({
47 flag_type => "email",
48 value => "bounced@example.com",
49 reason => "hard_bounce",
50 comment => "Email hard bounced",
51 });
52  
53 Report incorrect data such as hard bounces, invalid emails, or wrong organization info.
54  
55 See L<https://docs.tomba.io/api/flag#post-flag>
56  
57 =cut
58  
59 0 ▶sub CreateFlag {
Subroutine CreateFlag: not called CC=1 SCAR=6.9
Pod documented
60 0 my ($self, $body) = @_;
61 0 return $self->post(Tomba::Client::FLAG_PATH, $body);
62 }
63  
64 4 1;
65 __END__
« Status.pm ↑ Summary Count.pm »