Skip to content

Instantly share code, notes, and snippets.

@sluongng
Last active August 12, 2018 09:22
Show Gist options
  • Save sluongng/40c59363af6d16246b9187c0250cd37a to your computer and use it in GitHub Desktop.
Save sluongng/40c59363af6d16246b9187c0250cd37a to your computer and use it in GitHub Desktop.
Example request to get job listing information from VNWork
curl -X POST \
'https://jf8q26wwud-dsn.algolia.net/1/indexes/*/queries?x-algolia-application-id=JF8Q26WWUD&x-algolia-api-key=ZDQwODA4MThkYTVmODEyYWQxYmYyMmUwYzVkOWIxYzI1YzhmNDQ3ODk4OTM2NjU4OWUwYmFmODU1Y2NlZTUxZXRhZ0ZpbHRlcnM9JnVzZXJUb2tlbj1mODhjZjk3YTk0MTFmMmVkNWRmOTFkNDA5MmU5YzZhYw%3D%3D' \
-d '{
"requests": [
{
"indexName": "vnw_job_v2_35",
"params": "query=&hitsPerPage=50&maxValuesPerFacet=20&page=0&facets=%5B%22categoryIds%22%2C%22locationIds%22%2C%22categories%22%2C%22locations%22%2C%22skills%22%2C%22jobLevel%22%2C%22company%22%5D&tagFilters=&facetFilters=%5b%22locationIds%3a29%22%2c%22categoryIds%3a35%22%2c%22company%3aLazada+Techhub%22%5d&filters="
}
]
}' | jq '[.results[].hits[] | {jobTitle, url: ["https://www.vietnamworks.com/", (.jobId | tostring), "-jv/"] | join(""),jobSalary, salaryMax, salaryMin}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment