tomba 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tomba/client.rb +127 -113
- data/lib/tomba/exception.rb +20 -11
- data/lib/tomba/service.rb +15 -11
- data/lib/tomba/services/account.rb +24 -16
- data/lib/tomba/services/bulk.rb +235 -0
- data/lib/tomba/services/count.rb +30 -26
- data/lib/tomba/services/domain.rb +41 -35
- data/lib/tomba/services/enrichment.rb +72 -0
- data/lib/tomba/services/finder.rb +97 -28
- data/lib/tomba/services/flag.rb +53 -0
- data/lib/tomba/services/format.rb +30 -0
- data/lib/tomba/services/keys.rb +99 -58
- data/lib/tomba/services/leads-attributes.rb +83 -58
- data/lib/tomba/services/leads-lists.rb +83 -58
- data/lib/tomba/services/leads.rb +108 -0
- data/lib/tomba/services/location.rb +30 -0
- data/lib/tomba/services/logs.rb +28 -16
- data/lib/tomba/services/phone.rb +53 -0
- data/lib/tomba/services/reveal.rb +28 -0
- data/lib/tomba/services/similar.rb +30 -0
- data/lib/tomba/services/sources.rb +27 -20
- data/lib/tomba/services/status.rb +51 -44
- data/lib/tomba/services/technology.rb +30 -0
- data/lib/tomba/services/usage.rb +24 -16
- data/lib/tomba/services/verifier.rb +29 -20
- data/lib/tomba/version.rb +2 -1
- data/lib/tomba.rb +17 -0
- metadata +18 -7
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
class Verifier < Service
|
|
3
|
-
|
|
4
|
-
def email_verifier(email:)
|
|
5
|
-
if email.nil?
|
|
6
|
-
raise Tomba::Exception.new('Missing required parameter: "email"')
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
path = '/email-verifier/{email}'
|
|
10
|
-
.gsub('{email}', email)
|
|
1
|
+
# frozen_string_literal: true
|
|
11
2
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
module Tomba
|
|
4
|
+
# Verifier service for email verification.
|
|
5
|
+
#
|
|
6
|
+
# Provides methods to verify if an email address is valid and deliverable.
|
|
7
|
+
#
|
|
8
|
+
# @see https://docs.tomba.io/api/verifier
|
|
9
|
+
class Verifier < Service
|
|
10
|
+
# Email Verifier
|
|
11
|
+
#
|
|
12
|
+
# Verifies the deliverability of an email address.
|
|
13
|
+
#
|
|
14
|
+
# @see https://docs.tomba.io/api/verifier#email-verifier
|
|
15
|
+
# @param email [String] the email address to verify
|
|
16
|
+
# @param webhook_url [String, nil] webhook URL for async notifications
|
|
17
|
+
# @return [Hash] API response containing verification results
|
|
18
|
+
# @raise [Tomba::Exception]
|
|
19
|
+
def email_verifier(email:, webhook_url: nil)
|
|
20
|
+
raise Tomba::Exception, 'Missing required parameter: "email"' if email.nil?
|
|
18
21
|
|
|
22
|
+
path = '/email-verifier'
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
params = {}
|
|
25
|
+
params[:email] = email unless email.nil?
|
|
26
|
+
params[:webhook_url] = webhook_url unless webhook_url.nil?
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
@client.call('get', path, {
|
|
29
|
+
'content-type' => 'application/json'
|
|
30
|
+
}, params)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
data/lib/tomba/version.rb
CHANGED
data/lib/tomba.rb
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'net/http'
|
|
2
4
|
require 'uri'
|
|
3
5
|
require 'json'
|
|
6
|
+
require_relative 'tomba/version'
|
|
4
7
|
require_relative 'tomba/client'
|
|
5
8
|
require_relative 'tomba/service'
|
|
6
9
|
require_relative 'tomba/exception'
|
|
10
|
+
|
|
11
|
+
# Existing services
|
|
7
12
|
require_relative 'tomba/services/account'
|
|
8
13
|
require_relative 'tomba/services/domain'
|
|
9
14
|
require_relative 'tomba/services/finder'
|
|
@@ -16,3 +21,15 @@ require_relative 'tomba/services/logs'
|
|
|
16
21
|
require_relative 'tomba/services/keys'
|
|
17
22
|
require_relative 'tomba/services/leads-lists'
|
|
18
23
|
require_relative 'tomba/services/leads-attributes'
|
|
24
|
+
|
|
25
|
+
# New services
|
|
26
|
+
require_relative 'tomba/services/phone'
|
|
27
|
+
require_relative 'tomba/services/format'
|
|
28
|
+
require_relative 'tomba/services/similar'
|
|
29
|
+
require_relative 'tomba/services/technology'
|
|
30
|
+
require_relative 'tomba/services/location'
|
|
31
|
+
require_relative 'tomba/services/enrichment'
|
|
32
|
+
require_relative 'tomba/services/reveal'
|
|
33
|
+
require_relative 'tomba/services/flag'
|
|
34
|
+
require_relative 'tomba/services/leads'
|
|
35
|
+
require_relative 'tomba/services/bulk'
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tomba
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mohamed Ben rebia
|
|
8
8
|
- Tomba technology web service LLC
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-08-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: official Ruby library for Tomba
|
|
15
15
|
email:
|
|
@@ -24,23 +24,34 @@ files:
|
|
|
24
24
|
- lib/tomba/exception.rb
|
|
25
25
|
- lib/tomba/service.rb
|
|
26
26
|
- lib/tomba/services/account.rb
|
|
27
|
+
- lib/tomba/services/bulk.rb
|
|
27
28
|
- lib/tomba/services/count.rb
|
|
28
29
|
- lib/tomba/services/domain.rb
|
|
30
|
+
- lib/tomba/services/enrichment.rb
|
|
29
31
|
- lib/tomba/services/finder.rb
|
|
32
|
+
- lib/tomba/services/flag.rb
|
|
33
|
+
- lib/tomba/services/format.rb
|
|
30
34
|
- lib/tomba/services/keys.rb
|
|
31
35
|
- lib/tomba/services/leads-attributes.rb
|
|
32
36
|
- lib/tomba/services/leads-lists.rb
|
|
37
|
+
- lib/tomba/services/leads.rb
|
|
38
|
+
- lib/tomba/services/location.rb
|
|
33
39
|
- lib/tomba/services/logs.rb
|
|
40
|
+
- lib/tomba/services/phone.rb
|
|
41
|
+
- lib/tomba/services/reveal.rb
|
|
42
|
+
- lib/tomba/services/similar.rb
|
|
34
43
|
- lib/tomba/services/sources.rb
|
|
35
44
|
- lib/tomba/services/status.rb
|
|
45
|
+
- lib/tomba/services/technology.rb
|
|
36
46
|
- lib/tomba/services/usage.rb
|
|
37
47
|
- lib/tomba/services/verifier.rb
|
|
38
48
|
- lib/tomba/version.rb
|
|
39
49
|
homepage: https://tomba.io
|
|
40
50
|
licenses:
|
|
41
51
|
- Apache-2.0
|
|
42
|
-
metadata:
|
|
43
|
-
|
|
52
|
+
metadata:
|
|
53
|
+
rubygems_mfa_required: 'true'
|
|
54
|
+
post_install_message:
|
|
44
55
|
rdoc_options: []
|
|
45
56
|
require_paths:
|
|
46
57
|
- lib
|
|
@@ -55,8 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
55
66
|
- !ruby/object:Gem::Version
|
|
56
67
|
version: '0'
|
|
57
68
|
requirements: []
|
|
58
|
-
rubygems_version: 3.
|
|
59
|
-
signing_key:
|
|
69
|
+
rubygems_version: 3.4.19
|
|
70
|
+
signing_key:
|
|
60
71
|
specification_version: 4
|
|
61
72
|
summary: Tomba.io is an Email Finder for B2B sales and email marketing
|
|
62
73
|
test_files: []
|