Created
June 12, 2022 17:57
-
-
Save rxluz/8060dd749f66fc5a341fc77991a136a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 1. Get all candidates by job id | |
// GET https://harvest.greenhouse.io/v1/candidates?job_id=87752 | |
{ | |
[ | |
"name": 'Selena', | |
"applications": [ | |
{ "id": 69103370, | |
"jobs": [ | |
{ | |
"id": 87752, | |
"name": "Full Stack Engineer" | |
} | |
] | |
}, | |
{ | |
"id": 65153308, | |
"jobs": [ | |
{ | |
"id": 299100, | |
"name": "Data Scientist - BK" | |
} | |
] | |
}], | |
["name": 'Maria', "applications": [{"id": 69103370,}, {"id": 65153308}], | |
["name": 'Antonia', "applications": [{"id": 69103370,}, {"id": 65153308}], | |
} | |
// 2. Filter the applications by job id and get their IDs | |
[69103370, 69103370312, 6910337023, 69103370324] | |
//3. Get all the scorecards by application IDs | |
GET https://harvest.greenhouse.io/v1/applications/69103370/scorecards [] | |
GET https://harvest.greenhouse.io/v1/applications/69103370312/scorecards [] | |
GET https://harvest.greenhouse.io/v1/applications/6910337023/scorecards | |
GET https://harvest.greenhouse.io/v1/applications/69103370324/scorecards | |
// 4. Join all the scorecards results in one array and generate the report | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment