tomba 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tomba/client.rb +1 -1
- data/lib/tomba/services/domain.rb +7 -4
- data/lib/tomba/services/finder.rb +59 -4
- data/lib/tomba/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48d74ce103c86637e8f0f5293ab01e48be49d399644117f105a1cec48a6c9281
|
4
|
+
data.tar.gz: a525655fea90a69604ae4a4eb8beda7741905ffaec39453e7e7a983a1d089704
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdd91773b2a06692e95a6f6323ef6c323825ad9ae0ebbf6175d7a5098e25230a31ee9f89eed943d69997511ac17fa1d47c18935d8128d636cf22790c7b109429
|
7
|
+
data.tar.gz: 0ba6101c444eb0f8a993cba1387813a19bcd532f07a7e1e549f0c5c009e73a9a7f8015cdfeb2f5299e1792f119ee98e568b2b7566e3eea86db0a3f1e50e7ebb9
|
data/lib/tomba/client.rb
CHANGED
@@ -6,11 +6,14 @@ module Tomba
|
|
6
6
|
raise Tomba::Exception.new('Missing required parameter: "domain"')
|
7
7
|
end
|
8
8
|
|
9
|
-
path = '/domain-search/
|
10
|
-
.gsub('{domain}', domain)
|
9
|
+
path = '/domain-search/'
|
11
10
|
|
12
11
|
params = {}
|
13
12
|
|
13
|
+
if !domain.nil?
|
14
|
+
params[:domain] = domain
|
15
|
+
end
|
16
|
+
|
14
17
|
if !page.nil?
|
15
18
|
params[:page] = page
|
16
19
|
end
|
@@ -32,5 +35,5 @@ module Tomba
|
|
32
35
|
protected
|
33
36
|
|
34
37
|
private
|
35
|
-
end
|
36
|
-
end
|
38
|
+
end
|
39
|
+
end
|
@@ -14,11 +14,14 @@ module Tomba
|
|
14
14
|
raise Tomba::Exception.new('Missing required parameter: "lastName"')
|
15
15
|
end
|
16
16
|
|
17
|
-
path = '/email-finder
|
18
|
-
.gsub('{domain}', domain)
|
17
|
+
path = '/email-finder'
|
19
18
|
|
20
19
|
params = {}
|
21
20
|
|
21
|
+
if !domain.nil?
|
22
|
+
params[:domain] = domain
|
23
|
+
end
|
24
|
+
|
22
25
|
if !first_name.nil?
|
23
26
|
params[:first_name] = first_name
|
24
27
|
end
|
@@ -32,9 +35,61 @@ module Tomba
|
|
32
35
|
}, params);
|
33
36
|
end
|
34
37
|
|
38
|
+
def author_finder(url:)
|
39
|
+
if url.nil?
|
40
|
+
raise Tomba::Exception.new('Missing required parameter: "url"')
|
41
|
+
end
|
42
|
+
|
43
|
+
path = '/author-finder'
|
44
|
+
|
45
|
+
params = {}
|
46
|
+
|
47
|
+
if !url.nil?
|
48
|
+
params[:url] = url
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
return @client.call('get', path, {
|
53
|
+
'content-type' => 'application/json',
|
54
|
+
}, params);
|
55
|
+
end
|
56
|
+
|
57
|
+
def linkedin_finder(url:)
|
58
|
+
if url.nil?
|
59
|
+
raise Tomba::Exception.new('Missing required parameter: "url"')
|
60
|
+
end
|
61
|
+
|
62
|
+
path = '/linkedin-finder'
|
63
|
+
|
64
|
+
params = {}
|
65
|
+
|
66
|
+
if !url.nil?
|
67
|
+
params[:url] = url
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
return @client.call('get', path, {
|
72
|
+
'content-type' => 'application/json',
|
73
|
+
}, params);
|
74
|
+
end
|
75
|
+
|
76
|
+
def phone_finder(email:)
|
77
|
+
if email.nil?
|
78
|
+
raise Tomba::Exception.new('Missing required parameter: "email"')
|
79
|
+
end
|
80
|
+
|
81
|
+
path = '/phone/{email}'
|
82
|
+
.gsub('{email}', email)
|
83
|
+
|
84
|
+
params = {}
|
85
|
+
|
86
|
+
return @client.call('get', path, {
|
87
|
+
'content-type' => 'application/json',
|
88
|
+
}, params);
|
89
|
+
end
|
35
90
|
|
36
91
|
protected
|
37
92
|
|
38
93
|
private
|
39
|
-
end
|
40
|
-
end
|
94
|
+
end
|
95
|
+
end
|
data/lib/tomba/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mohamed Ben rebia
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: official Ruby library for Tomba
|
15
15
|
email:
|