tomba 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14fc88b877a55b993f2d26a344212ba05c3e95caecc23c544340c33938a0cc2b
4
- data.tar.gz: 3c083ee97a506e80b081dd8c1316bf396e5f0f6f445d402cb70d0c40d82a2e63
3
+ metadata.gz: 48d74ce103c86637e8f0f5293ab01e48be49d399644117f105a1cec48a6c9281
4
+ data.tar.gz: a525655fea90a69604ae4a4eb8beda7741905ffaec39453e7e7a983a1d089704
5
5
  SHA512:
6
- metadata.gz: 79fa611ff51ae93ff978c716e9461e0a8677889fd0b880deac9ee75af5b76d11f7c4719fcb5427cdbdffd956310dd6a7d62a267d76514d17a9937f8d68b8bf1b
7
- data.tar.gz: 47132687b7c2f5788bc1aafc47c0ad1318d9e1d69231323509bdceb1322fe1cf68966c72050d8d847a78ab51a26c41b520aa78fb6f6efbe604e92992837f0493
6
+ metadata.gz: bdd91773b2a06692e95a6f6323ef6c323825ad9ae0ebbf6175d7a5098e25230a31ee9f89eed943d69997511ac17fa1d47c18935d8128d636cf22790c7b109429
7
+ data.tar.gz: 0ba6101c444eb0f8a993cba1387813a19bcd532f07a7e1e549f0c5c009e73a9a7f8015cdfeb2f5299e1792f119ee98e568b2b7566e3eea86db0a3f1e50e7ebb9
data/lib/tomba/client.rb CHANGED
@@ -20,7 +20,7 @@ module Tomba
20
20
  @headers = {
21
21
  'content-type' => '',
22
22
  'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
23
- 'x-sdk-version' => 'tomba:ruby:v1.0.0'
23
+ 'x-sdk-version' => 'tomba:ruby:v1.0.1'
24
24
 
25
25
  }
26
26
  @endpoint = 'https://api.tomba.io/v1';
@@ -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/{domain}'
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/{domain}'
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
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Tomba
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
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.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: 2021-10-19 00:00:00.000000000 Z
12
+ date: 2023-01-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: official Ruby library for Tomba
15
15
  email: