1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "tenants": [
12 "4f4044a4-defb-4c77-a59a-278b26f51424/Soleo-Health-Inc",
13 "fc2b0476-4277-4941-b24c-c80b6dfccee3/NEFCO",
14 "a341e991-6fa2-40f7-b961-8a5b22284904/Gifthealth-Inc",
15 "c83b33c2-b737-4429-a12c-be3b67524cd1/BBG-INC",
16 "33704aa8-8475-45e8-b8a8-55e4d6765e36/NEMEAN-SOLUTIONS-LLC"
17 ]
18};
19
20
21const run = await client.actor("nexgenwatch/paylocity-job-feed").call(input);
22
23
24console.log('Results from dataset');
25console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
26const { items } = await client.dataset(run.defaultDatasetId).listItems();
27items.forEach((item) => {
28 console.dir(item);
29});
30
31