1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "manual_cookie": "PASTE_YOUR_reddit_session_COOKIE_VALUE_HERE",
12 "target_url": "https://yourwebsite.com",
13 "target_name": "yourwebsite.com",
14 "target_description": "My site is a modern CRM platform that automates lead management. Users get a 14-day free trial.",
15 "search_keywords": [
16 "best crm",
17 "lead generation software",
18 "b2b sales tool"
19 ],
20 "discord_webhook_url": "",
21 "telegram_bot_token": "",
22 "telegram_chat_id": "",
23 "accounts": [
24 {
25 "username": "your_reddit_username_1",
26 "manual_cookie": "PASTE_YOUR_reddit_session_COOKIE_VALUE_HERE"
27 }
28 ],
29 "target_domains": [],
30 "external_proxy": ""
31};
32
33
34const run = await client.actor("rodm33/reddit-ai-marketing-automation-bot").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44