Returns a paginated collection of your company jobs.
npm i @superfaceai/one-sdk
const { SuperfaceClient } = require('@superfaceai/one-sdk');
// You can manage tokens here: https://superface.ai/insights
const sdk = new SuperfaceClient({ sdkAuthToken: '<< Login to get your token >>' });
async function run() {
// Load the profile
const profile = await sdk.getProfile('recruitment/jobs@1.0.0');
// Use the profile
const result = await profile
.getUseCase('ListJobs')
.perform({
state: 'published'
}, {
provider: 'mock'
});
// Handle the result
try {
const data = result.unwrap();
console.log(data);
} catch (error) {
console.error(error);
}
}
run();
{
"state": "published"
}
{
"jobs": [
{
"id": "JOB_ID",
"name": "Software engineer",
"description": "We are looking for a Software Engineer who will assist us with design, development and installation of software solutions. Your duties will include development, writing code, and documenting functionality."
}
]
}