peopledatalabs 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peopledatalabs/resources/autocomplete.rb +4 -1
- data/lib/peopledatalabs/resources/bulk.rb +4 -1
- data/lib/peopledatalabs/resources/cleaner.rb +12 -3
- data/lib/peopledatalabs/resources/enrichment.rb +8 -2
- data/lib/peopledatalabs/resources/identify.rb +4 -1
- data/lib/peopledatalabs/resources/retrieve.rb +4 -1
- data/lib/peopledatalabs/resources/search.rb +4 -1
- data/lib/peopledatalabs/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: 8487e165b7668a953e8b493bc36527e928013298fab2276c40f7273aa644940f
|
4
|
+
data.tar.gz: cc2475d21701312f3c9d988dbd95aeee5b83be4f9760fbc95cd78055004fa34b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e83c9489fb812e2a8fbf2a0fdc36052d82cf7d2fc67ee88439f4a562a6ffacacdc0c1ab14bde1d178d8ac83ea2cc7d784481e2a5f062b287e61815a4a7987ab
|
7
|
+
data.tar.gz: c7a7281d7b4bf1b812ccdff279e03412d41e474bec546f4a3e9093a6a31d4629d359af937e7ea202e3b75d190ae6ef1394034c41ab981c34ac6bd58b5f5c177d
|
@@ -11,7 +11,10 @@ module Peopledatalabs
|
|
11
11
|
'pretty' => pretty,
|
12
12
|
};
|
13
13
|
|
14
|
-
headers = {
|
14
|
+
headers = {
|
15
|
+
'Accept-Encoding' => 'gzip',
|
16
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
17
|
+
}
|
15
18
|
get(path: '/v5/autocomplete', headers: headers, params: params)
|
16
19
|
end
|
17
20
|
end
|
@@ -3,7 +3,10 @@
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Bulk < APIResource
|
5
5
|
def self.people(params:)
|
6
|
-
headers = {
|
6
|
+
headers = {
|
7
|
+
'Accept-Encoding' => 'gzip',
|
8
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
9
|
+
}
|
7
10
|
post(path: '/v5/person/bulk', headers: headers, body: params)
|
8
11
|
end
|
9
12
|
end
|
@@ -3,17 +3,26 @@
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Cleaner < APIResource
|
5
5
|
def self.company(kind:, value:)
|
6
|
-
headers = {
|
6
|
+
headers = {
|
7
|
+
'Accept-Encoding' => 'gzip',
|
8
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
9
|
+
}
|
7
10
|
get(path: '/v5/company/clean', headers: headers, params: { kind => value })
|
8
11
|
end
|
9
12
|
|
10
13
|
def self.school(kind:, value:)
|
11
|
-
headers = {
|
14
|
+
headers = {
|
15
|
+
'Accept-Encoding' => 'gzip',
|
16
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
17
|
+
}
|
12
18
|
get(path: '/v5/school/clean', headers: headers, params: { kind => value })
|
13
19
|
end
|
14
20
|
|
15
21
|
def self.location(value:)
|
16
|
-
headers = {
|
22
|
+
headers = {
|
23
|
+
'Accept-Encoding' => 'gzip',
|
24
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
25
|
+
}
|
17
26
|
get(path: '/v5/location/clean', headers: headers, params: { 'location' => value })
|
18
27
|
end
|
19
28
|
|
@@ -3,12 +3,18 @@
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Enrichment < APIResource
|
5
5
|
def self.person(params:)
|
6
|
-
headers = {
|
6
|
+
headers = {
|
7
|
+
'Accept-Encoding' => 'gzip',
|
8
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
9
|
+
}
|
7
10
|
get(path: '/v5/person/enrich', headers: headers, params: params)
|
8
11
|
end
|
9
12
|
|
10
13
|
def self.company(params:)
|
11
|
-
headers = {
|
14
|
+
headers = {
|
15
|
+
'Accept-Encoding' => 'gzip',
|
16
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
17
|
+
}
|
12
18
|
get(path: '/v5/company/enrich', headers: headers, params: params)
|
13
19
|
end
|
14
20
|
|
@@ -3,7 +3,10 @@
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Identify < APIResource
|
5
5
|
def self.person(params:)
|
6
|
-
headers = {
|
6
|
+
headers = {
|
7
|
+
'Accept-Encoding' => 'gzip',
|
8
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
9
|
+
}
|
7
10
|
get(path: '/v5/person/identify', headers: headers, params: params)
|
8
11
|
end
|
9
12
|
end
|
@@ -3,7 +3,10 @@
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Retrieve < APIResource
|
5
5
|
def self.person(person_id:, pretty: false)
|
6
|
-
headers = {
|
6
|
+
headers = {
|
7
|
+
'Accept-Encoding' => 'gzip',
|
8
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
9
|
+
}
|
7
10
|
get(path: "/v5/person/retrieve/#{person_id}", headers: headers, params: { 'pretty' => pretty })
|
8
11
|
end
|
9
12
|
end
|
@@ -33,7 +33,10 @@ module Peopledatalabs
|
|
33
33
|
'scroll_token' => scroll_token
|
34
34
|
}
|
35
35
|
|
36
|
-
headers = {
|
36
|
+
headers = {
|
37
|
+
'Accept-Encoding' => 'gzip',
|
38
|
+
'User-Agent' => 'PDL-RUBY-SDK',
|
39
|
+
}
|
37
40
|
post(path: "/v5/#{kind}/search", headers: headers, body: body)
|
38
41
|
end
|
39
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peopledatalabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- People Data Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|