1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "googleAccessToken": "",
10 "googleRefreshToken": "",
11 "googleClientId": "",
12 "googleClientSecret": "",
13 "customerName": "",
14 "customerPhone": "",
15 "customerEmail": "",
16 "serviceType": "",
17 "specialNotes": "",
18 "eventData": {
19 "summary": "Meeting with Customer",
20 "description": """Customer phone: 555-1234
21Notes: Initial consultation""",
22 "start": {
23 "dateTime": "2025-08-17T14:00:00-07:00",
24 "timeZone": "America/Los_Angeles",
25 },
26 "end": {
27 "dateTime": "2025-08-17T15:00:00-07:00",
28 "timeZone": "America/Los_Angeles",
29 },
30 "attendees": [{
31 "email": "customer@example.com",
32 "displayName": "Customer Name",
33 }],
34 "location": "123 Main St, Your City, State",
35 },
36}
37
38
39run = client.actor("sambehnke/google-calendar-create-event").call(run_input=run_input)
40
41
42print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
43for item in client.dataset(run["defaultDatasetId"]).iterate_items():
44 print(item)
45
46