1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "resumeText": `John Smith
12 San Francisco, CA • john.smith@gmail.com • +1-415-555-1234
13
14 Senior Software Engineer
15
16 Experience:
17 - Google, Software Engineer (2020-2024)
18 - Meta, Software Engineer (2018-2020)
19
20 Education:
21 - Stanford University, BS Computer Science`,
22 "claimedCompanies": [],
23 "behaviorFlags": {
24 "refusedVideoCall": false,
25 "insistsRemoteOnly": false,
26 "shippingAddressMismatch": false,
27 "vagueTechAnswers": false,
28 "timezoneInconsistency": false
29 }
30};
31
32
33const run = await client.actor("okpoorav/candidate-trust-engine").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43