Enrichment.pm

filter: Statementstmt 52.6% 10 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 57.1% 16 / 28 CC 1 SCAR 4.1
CC
1
Cov
53%
PersonFind
2.0
CompanyFind
2.0
CombinedFind
2.0
CRAP 1.5
« LeadsList.pm ↑ Summary Status.pm »
1 package Tomba::Enrichment;
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::Enrichment - Clearbit-compatible enrichment APIs for the Tomba.io API
10  
11 =head1 SYNOPSIS
12  
13 use Tomba::Enrichment;
14  
15 my $tomba = Tomba::Enrichment->new("ta_xxxxx", "ts_xxxxx");
16 my $person = $tomba->PersonFind("m@wordpress.org");
17 my $company = $tomba->CompanyFind("tomba.io");
18 my $combined = $tomba->CombinedFind("m@wordpress.org");
19  
20 =head1 DESCRIPTION
21  
22 Clearbit-compatible Person, Company, and Combined enrichment APIs.
23  
24 =cut
25  
26 #-------------------------------------------------------------------------------
27 # Person Find (Clearbit-compatible)
28 #-------------------------------------------------------------------------------
29  
30 =head2 PersonFind
31  
32 my $data = $tomba->PersonFind("m@wordpress.org");
33  
34 Fetch social details tied to an email address (Clearbit-compatible Person API).
35  
36 See L<https://docs.tomba.io/api/enrichment#get-people-find>
37  
38 =cut
39  
40 0 ▶sub PersonFind {
Subroutine PersonFind: not called CC=1 SCAR=6.9
Pod documented
41 0 my ($self, $email) = @_;
42 0 my $params = {
43 email => $email,
44 };
45 0 return $self->call(Tomba::Client::PERSON_FIND_PATH, $params);
46 }
47  
48 #-------------------------------------------------------------------------------
49 # Company Find (Clearbit-compatible)
50 #-------------------------------------------------------------------------------
51  
52 =head2 CompanyFind
53  
54 my $data = $tomba->CompanyFind("tomba.io");
55  
56 Look up company data via a domain (Clearbit-compatible Company API).
57  
58 See L<https://docs.tomba.io/api/enrichment#get-companies-find>
59  
60 =cut
61  
62 0 ▶sub CompanyFind {
Subroutine CompanyFind: not called CC=1 SCAR=6.9
Pod documented
63 0 my ($self, $domain) = @_;
64 0 my $params = {
65 domain => $domain,
66 };
67 0 return $self->call(Tomba::Client::COMPANY_FIND_PATH, $params);
68 }
69  
70 #-------------------------------------------------------------------------------
71 # Combined Find (Clearbit-compatible)
72 #-------------------------------------------------------------------------------
73  
74 =head2 CombinedFind
75  
76 my $data = $tomba->CombinedFind("m@wordpress.org");
77  
78 Returns both person and company data from an email (Clearbit-compatible Combined API).
79  
80 See L<https://docs.tomba.io/api/enrichment#get-combined-find>
81  
82 =cut
83  
84 0 ▶sub CombinedFind {
Subroutine CombinedFind: not called CC=1 SCAR=6.9
Pod documented
85 0 my ($self, $email) = @_;
86 0 my $params = {
87 email => $email,
88 };
89 0 return $self->call(Tomba::Client::COMBINED_FIND_PATH, $params);
90 }
91  
92 4 1;
93 __END__
« LeadsList.pm ↑ Summary Status.pm »