1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentItems": [
12 {
13 "id": "p1",
14 "name": "VP Procurement",
15 "seniorityScore": 96,
16 "roleFit": 94,
17 "influenceScore": 91,
18 "contactabilityScore": 82,
19 "companyHeadcount": 4200
20 },
21 {
22 "id": "p2",
23 "name": "Analyst",
24 "seniorityScore": 38,
25 "roleFit": 52,
26 "influenceScore": 31,
27 "contactabilityScore": 76,
28 "companyHeadcount": 4200
29 }
30 ],
31 "previousItems": [
32 {
33 "id": "p1",
34 "name": "VP Procurement",
35 "seniorityScore": 90,
36 "roleFit": 88,
37 "influenceScore": 82,
38 "contactabilityScore": 70,
39 "companyHeadcount": 3900
40 }
41 ]
42};
43
44
45const run = await client.actor("quanmatrix/linkedin-buyer-committee-intelligence").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55