1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "salesObject": {
9 "candidates": [{
10 "candidateId": "candidate id",
11 "outreach_status": "'start','messaged'",
12 "fullName": "Full name of the candidate",
13 "werkNlUrl": "Werk NL profile url of the candidate",
14 "message": {
15 "subject": "Subject of the message",
16 "content": "Content of the message",
17 },
18 }],
19 "user_id": {
20 "title": "User ID",
21 "type": "string",
22 "description": "User ID to use for the outreach",
23 },
24 } }
25
26
27run = client.actor("obedient_stars/cmg-werknl-outreach-service").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34