1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 {
13 "company": "Ramp",
14 "domain": "ramp.com"
15 }
16 ],
17 "target_trigger_types": [
18 "funding_mna",
19 "exec_hire",
20 "product_launch",
21 "hiring_spree",
22 "regulatory_or_security",
23 "expansion"
24 ],
25 "sender_offer_context": "Outsourced RevOps and CRM automation for fast-growing B2B teams"
26};
27
28
29const run = await client.actor("atlasdean/b2b-trigger-event-radar").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39