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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d078a93c2dc3607c0ccd632210a451f0f7f56bf1f1fd20a886cb9935af5113ac
4
- data.tar.gz: be3d3ddc4de6b359a0fa78ddd0466e9e14e7ab28c9a38a5080e61eee8b6a2d80
3
+ metadata.gz: 8487e165b7668a953e8b493bc36527e928013298fab2276c40f7273aa644940f
4
+ data.tar.gz: cc2475d21701312f3c9d988dbd95aeee5b83be4f9760fbc95cd78055004fa34b
5
5
  SHA512:
6
- metadata.gz: 40214ff087b274b0ab09f33e83372c5290842eae8adf16ccf38593173d3f6bf9f569a3b9fd2a9450950ab153fa0efccd7bafce7e640b392e9d6ace0d61b046df
7
- data.tar.gz: aa161a86391ec1c03a2828290792e0d56c35e6776a4306befdc25184b079a8d4c8bfbf2ec08e27743621b6fa388964ef2015dc18f4890adbad8699b63b37393c
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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 = { 'Accept-Encoding' => 'gzip' }
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
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  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.2
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-16 00:00:00.000000000 Z
11
+ date: 2022-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler