Skip to content

Instantly share code, notes, and snippets.

@rxluz
Created June 12, 2022 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxluz/8060dd749f66fc5a341fc77991a136a1 to your computer and use it in GitHub Desktop.
Save rxluz/8060dd749f66fc5a341fc77991a136a1 to your computer and use it in GitHub Desktop.
// 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