1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "Gmail": [
12 {
13 "Gmail_Email": "Test@gmail.com",
14 "App_Password": "qlrzssjzukooftjeydsd"
15 },
16 {
17 "Gmail_Email": "Test1@gmail.com",
18 "App_Password": "qlrzssjzukooftjeydsd"
19 }
20 ],
21 "To": [
22 "test@gmail.com",
23 "test1@gmail.com"
24 ],
25 "Reply_To": "",
26 "Subject": "Test Email",
27 "Message": "test",
28 "SendLimit": "300",
29 "Delay": "10"
30};
31
32
33const run = await client.actor("bhansalisoft/bulk-gmail-sender-with-multiple-account").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