| 1 | package Tomba::Reveal; | ||
| 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::Reveal - Companies search (Reveal) for the Tomba.io API | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | use Tomba::Reveal; | ||
| 14 | |||
| 15 | my $tomba = Tomba::Reveal->new("ta_xxxxx", "ts_xxxxx"); | ||
| 16 | my $companies = $tomba->CompaniesSearch({ query => "Real Estate Agency in Europe", page => 1 }); | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | Search for companies using natural language queries or structured filters. | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | #------------------------------------------------------------------------------- | ||
| 25 | # Companies Search (Reveal) | ||
| 26 | #------------------------------------------------------------------------------- | ||
| 27 | |||
| 28 | =head2 CompaniesSearch | ||
| 29 | |||
| 30 | my $data = $tomba->CompaniesSearch({ query => "Real Estate Agency in Europe", page => 1 }); | ||
| 31 | my $data = $tomba->CompaniesSearch({ | ||
| 32 | filters => { | ||
| 33 | industry => { include => ["technology"] }, | ||
| 34 | location_country => { include => ["US"] }, | ||
| 35 | }, | ||
| 36 | page => 1, | ||
| 37 | }); | ||
| 38 | |||
| 39 | Search for companies using natural language queries or structured filters. | ||
| 40 | |||
| 41 | See L<https://docs.tomba.io/api/reveal#post-reveal-search> | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 0 | ▶ | sub CompaniesSearch { |
|
Subroutine
CompaniesSearch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | 0 | my ($self, $body) = @_; | |
| 47 | 0 | return $self->post(Tomba::Client::COMPANIES_SEARCH_PATH, $body); | |
| 48 | } | ||
| 49 | |||
| 50 | 4 | 1; | |
| 51 | __END__ | ||