1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchQueries": [
12 "Biel/Bienne Moving companies",
13 "Thun Car repair shops",
14 "Winterthur Property management companies",
15 "Aarau Renovation contractors",
16 "St. Gallen Cleaning companies",
17 "Lugano Auto repair shops",
18 "Fribourg Hair salons",
19 "NeuchΓ’tel Dentists",
20 "Sion Roofing contractors",
21 "Chur Real estate agencies"
22 ],
23 "smtpAccounts": [
24 {
25 "email": "shahji90k@gmail.com",
26 "app_password": "hgck udow kgdn fzpo",
27 "host": "smtp.gmail.com",
28 "port": 587,
29 "daily_limit": 200
30 }
31 ]
32};
33
34
35const run = await client.actor("awake_orchestra_trb/google-maps-review-outreach-actor").call(input);
36
37
38console.log('Results from dataset');
39console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45