1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "salesObject": { "candidates": [{
9 "candidateId": "candidate id",
10 "action_type": "action required 'connect_message' or 'inmail'",
11 "outreach_status": "'start','connection_sent','connection_sent_messaged','connection_pending','connected','connected_messaged' or 'inmail_sent'",
12 "fullName": "Full name of the candidate",
13 "salesUrl": "sales navigator url of the candidate",
14 "linkedinUrl": "linkedin profile url of the candidate",
15 "message": {
16 "subject": "Subject of the message",
17 "content": "Content of the message",
18 },
19 }] } }
20
21
22run = client.actor("obedient_stars/cmg-linkedin-outreach-service").call(run_input=run_input)
23
24
25print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
26for item in client.dataset(run["defaultDatasetId"]).iterate_items():
27 print(item)
28
29