1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "campaignId": "your-campaign-id-here",
10 "leads": [{
11 "email": "sarah.chen@acmecorp.com",
12 "firstName": "Sarah",
13 "lastName": "Chen",
14 "companyName": "Acme Corp",
15 "phone": "+1-415-555-0192",
16 "website": "acmecorp.com",
17 "icpScore": 82,
18 "icpGrade": "A",
19 }],
20 "personalizationTemplate": "Hi {{firstName}}, I noticed {{companyName}} scored {{icpGrade}} on our ICP analysis.",
21 "minIcpScore": 0,
22 "dryRun": True,
23}
24
25
26run = client.actor("ryanclinton/instantly-lead-pusher").call(run_input=run_input)
27
28
29print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31 print(item)
32
33