1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "entityId": "demo-shop-1",
14 "shopName": "Demo Auto Service",
15 "website": "https://demo-auto-service.example",
16 "technologies": [
17 "Tekmetric",
18 "Podium"
19 ],
20 "capabilities": {
21 "onlineBooking": true,
22 "financing": false
23 },
24 "averageRating": 4.3
25 }
26 ],
27 "seedWithoutEvents": false,
28 "includeUnchanged": true
29};
30
31
32const run = await client.actor("repairiq/auto-repair-change-monitor").call(input);
33
34
35console.log('Results from dataset');
36console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42