1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "pipedriveCompanyDomain": "yourcompany",
10 "leads": [{
11 "domain": "growthagency.io",
12 "companyName": "Growth Agency",
13 "city": "Austin",
14 "state": "TX",
15 "country": "United States",
16 "industry": "Marketing & Advertising",
17 "emails": ["hello@growthagency.io"],
18 "contacts": [{
19 "name": "Sarah Chen",
20 "title": "Founder",
21 "email": "sarah@growthagency.io",
22 "phone": "+1-512-555-0192",
23 }],
24 "icpScore": 82,
25 "icpGrade": "A",
26 }],
27 "dealTitle": "New Lead: {{companyName}} (Score: {{icpScore}})",
28 "dryRun": True,
29}
30
31
32run = client.actor("ryanclinton/pipedrive-lead-pusher").call(run_input=run_input)
33
34
35print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
36for item in client.dataset(run["defaultDatasetId"]).iterate_items():
37 print(item)
38
39