peopledatalabs 2.1.1 → 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95b02cf3a6e1c3a73a7bdda1941b7b1d93e4746534d0ae1f0a429ee628d29098
4
- data.tar.gz: 0503c9888cf0df7f10a9512868c29e2d18395e19c61a4a5d8e5078056469e38d
3
+ metadata.gz: 57e7aa93b318bff1820069ecb0afa5f1498da03b07f3fbaaff08a2dda69d3868
4
+ data.tar.gz: 82edcd34181601490cc2f03cc3e910b0532ff23c5c6e1de7820c1acc717fffba
5
5
  SHA512:
6
- metadata.gz: 40fd5bcabf8af3c90078559d6939c7571447288a62c87ce518d87fa7ee9caa4226abb371085ee7970d3b6adc6b8cf9315f4cdb37ce182690594f194c5ba1f8c2
7
- data.tar.gz: e488333578f4c3aa93fafbdaf8ad20d171869b032fe048bcc6dc8302ade1296eb0529825cd8d97b493802d7f1ba424520d2520affc6bbe1c1efd91cee105d333
6
+ metadata.gz: d3ba06eee139d3a12d5e2b5ae090b31ec1f328dc2609e7fd1f4d987bbe554ec6a3a5e759188d9191b95e00f92222deb8bde11be71d2ca19efe8ef0cd8c4c1f04
7
+ data.tar.gz: b3d617734c767c013ea1f524e3864329ce808581d109dfa01843aba90f2002e3eee4c9596411ff78d26febeea9fe80ab8f43aaa2b2833014cf7043732b6454c3
@@ -14,10 +14,10 @@ jobs:
14
14
 
15
15
  steps:
16
16
  - uses: actions/checkout@v3
17
- - name: Set up Ruby 2.6
17
+ - name: Set up Ruby 3.0
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.6
20
+ ruby-version: 3.0
21
21
 
22
22
  - name: Publish to RubyGems
23
23
  run: |
@@ -12,10 +12,10 @@ jobs:
12
12
 
13
13
  steps:
14
14
  - uses: actions/checkout@v3
15
- - name: Setup Ruby
15
+ - name: Set up Ruby 3.0
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6
18
+ ruby-version: 3.0
19
19
 
20
20
  - name: Build and run test
21
21
  env:
data/README.md CHANGED
@@ -86,6 +86,9 @@ Peopledatalabs::Identify.person(params: { name: 'sean thorne' })
86
86
  # By Enrichment
87
87
  Peopledatalabs::Enrichment.company(params: { website: 'peopledatalabs.com' })
88
88
 
89
+ # By Bulk Enrichment
90
+ Peopledatalabs::Bulk.company(params: {requests: [{params: {profile: ['linkedin.com/company/peopledatalabs']}}, {params: {profile: ['linkedin.com/company/apple']}}]})
91
+
89
92
  # By Search (SQL)
90
93
  Peopledatalabs::Search.company(searchType: 'sql', query: "SELECT * FROM company WHERE tags='big data' AND industry='financial services' AND location.country='united states'")
91
94
 
@@ -150,6 +153,7 @@ Peopledatalabs.sandbox = true
150
153
  | API Endpoint | peopledatalabs Function |
151
154
  |-|-|
152
155
  | [Company Enrichment API](https://docs.peopledatalabs.com/docs/company-enrichment-api) | `Peopledatalabs::Enrichment.company(...params)` |
156
+ | [Company Bulk Enrichment API](https://docs.peopledatalabs.com/docs/bulk-company-enrichment-api) | `Peopledatalabs::Bulk.company(...params)` |
153
157
  | [Company Search API](https://docs.peopledatalabs.com/docs/company-search-api) | `Peopledatalabs::Search.company(...params)` |
154
158
 
155
159
  **IP Endpoints**
@@ -2,13 +2,15 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class Autocomplete < APIResource
5
- def self.retrieve(field:, text: '', size: 10, pretty: false)
5
+ def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false, beta: false)
6
6
 
7
7
  params = {
8
8
  'field' => field,
9
9
  'text' => text,
10
10
  'size' => size,
11
11
  'pretty' => pretty,
12
+ 'titlecase' => titlecase,
13
+ 'beta' => beta,
12
14
  };
13
15
 
14
16
  headers = {
@@ -9,5 +9,13 @@ module Peopledatalabs
9
9
  }
10
10
  post(path: '/v5/person/bulk', headers: headers, body: params)
11
11
  end
12
+
13
+ def self.company(params:)
14
+ headers = {
15
+ 'Accept-Encoding' => 'gzip',
16
+ 'User-Agent' => 'PDL-RUBY-SDK',
17
+ }
18
+ post(path: '/v5/company/enrich/bulk', headers: headers, body: params)
19
+ end
12
20
  end
13
21
  end
@@ -2,11 +2,12 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class JobTitle < APIResource
5
- def self.retrieve(job_title:, pretty: false)
5
+ def self.retrieve(job_title:, pretty: false, titlecase: false)
6
6
 
7
7
  params = {
8
8
  'job_title' => job_title,
9
9
  'pretty' => pretty,
10
+ 'titlecase' => titlecase,
10
11
  };
11
12
 
12
13
  headers = {
@@ -2,11 +2,12 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class Skill < APIResource
5
- def self.retrieve(skill:, pretty: false)
5
+ def self.retrieve(skill:, pretty: false, titlecase: false)
6
6
 
7
7
  params = {
8
8
  'skill' => skill,
9
9
  'pretty' => pretty,
10
+ 'titlecase' => titlecase,
10
11
  };
11
12
 
12
13
  headers = {
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "2.1.1"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -15,7 +15,7 @@ require 'peopledatalabs/resources/skill'
15
15
 
16
16
 
17
17
  # gem build peopledatalabs.gemspec
18
- # gem install ./peopledatalabs-2.1.1.gem
18
+ # gem install ./peopledatalabs-2.3.0.gem
19
19
  # irb
20
20
  # require 'peopledatalabs'
21
21
  # rake spec PDL_API_KEY=API_KEY
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: 2.1.1
4
+ version: 2.3.0
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: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.0.3.1
145
+ rubygems_version: 3.5.3
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Official Ruby client for the People Data Labs API.