-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skill, job_title and sandbox endpoints support (#7)
* add new endpoints * update readme * fix readme comment * feat(Sandbox): allow to hit sandbox urls * add tests * add sandbox flag to readme * sandbox emoji * switch from people to person * add breaking change to readme * emoji for upgrade * new line Co-authored-by: james <[email protected]>
- Loading branch information
1 parent
4911cdd
commit 8fa5547
Showing
11 changed files
with
212 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
/test/version_tmp/ | ||
/tmp/ | ||
/.idea | ||
.env | ||
|
||
|
||
# Used by dotenv library to load environment variables. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module Peopledatalabs | ||
class JobTitle < APIResource | ||
def self.retrieve(job_title:, pretty: false) | ||
|
||
params = { | ||
'job_title' => job_title, | ||
'pretty' => pretty, | ||
}; | ||
|
||
headers = { | ||
'Accept-Encoding' => 'gzip', | ||
'User-Agent' => 'PDL-RUBY-SDK', | ||
} | ||
get(path: '/v5/job_title/enrich', headers: headers, params: params) | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module Peopledatalabs | ||
class Skill < APIResource | ||
def self.retrieve(skill:, pretty: false) | ||
|
||
params = { | ||
'skill' => skill, | ||
'pretty' => pretty, | ||
}; | ||
|
||
headers = { | ||
'Accept-Encoding' => 'gzip', | ||
'User-Agent' => 'PDL-RUBY-SDK', | ||
} | ||
get(path: '/v5/skill/enrich', headers: headers, params: params) | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Peopledatalabs | ||
VERSION = "1.0.4" | ||
VERSION = "2.0.0" | ||
end |
Oops, something went wrong.