List jobs

recruitment/list-jobs@1.0.1
14 providers

List jobs

Returns a paginated collection of your company jobs.

Input
State
Page
Page limit
Result
Jobs
Pagination
Rate limit

1.Choose a provider

2.Use ListJobs with mock in your code

npm i @superfaceai/one-sdk
const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the profile
  const profile = await sdk.getProfile('recruitment/list-jobs@1.0.1');

  // 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();

Structure details

Input (object)

state
The state to filter jobs with.
page
Pagination cursor (obtained from `previousPage` or `nextPage`).
limit
Maximum number of jobs returned in single page.

Example

{
  "state": "published"
}

Result (object)

jobs
List of jobs.
pagination
The pagination state.
rateLimit
Rate limit details.

Example

{
  "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."
    }
  ]
}

Implementation details

Provider
mock
Use case
ListJobs
Author
@superface
Source
Verified