peopledatalabs 2.2.0 → 2.3.0

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: 2297c141ffcf542022f6617d899b756afcd81308501ab7925b7002d442fe5956
4
- data.tar.gz: aa1b7ea805e0b2132864a7cf19a72d50274a8d54d154ed977dfcd46d6bae2c06
3
+ metadata.gz: 57e7aa93b318bff1820069ecb0afa5f1498da03b07f3fbaaff08a2dda69d3868
4
+ data.tar.gz: 82edcd34181601490cc2f03cc3e910b0532ff23c5c6e1de7820c1acc717fffba
5
5
  SHA512:
6
- metadata.gz: cb1d27e8eb7f6aa5a03b9f35dc8b11d9030bca40f02247bd66d7106406d6c17af3eaabd0b7e05afd09e8479b7f89a754c37375a38536e3b8d12decda1d834a8d
7
- data.tar.gz: 81be8e1f48533fcd7f9518870288834adc59f992d687292209bc0583ba4de10dd6d3834dcca85cc988a34dcb52c97b0cffc0c25578bed0527e5fce50297b6480
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**
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "2.2.0"
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.2.0.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.2.0
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-11-22 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.