Get CV

recruitment/get-cv@1.0.0
14 providers

Get CV

Get a candidate's CV document, by candidate ID. Returns either a URL, or binary data of the CV document, depending on the provider.

Input
Contact ID
Result
Curriculum Vitae
Rate limit

1.Choose a provider

2.Use GetCV 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/get-cv@1.0.0');

  // Use the profile
  const result = await profile
    .getUseCase('GetCV')
    .perform({
      candidateId: 'CANDIATE_ID'
    }, {
      provider: 'mock'
    });

  // Handle the result
  try {
    const data = result.unwrap();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

run();

Structure details

Input (object)

candidateId
Unique identifier of the candidate. Use the `recruitment/list-candidates` profile to get candidate IDs.

Example

{
  "candidateId": "CANDIATE_ID"
}

Result (object)

cv
The CV of the candidate.
rateLimit
Rate limit details.

Example

{
  "cv": {
    "createdAt": "2023-01-05T10:04:58.325Z",
    "document": {
      "fileName": "cv.pdf",
      "content": "<BinaryData>"
    }
  }
}

Implementation details

Provider
mock
Use case
GetCV
Author
@superface
Source
Verified