Skip to content

Commit 64dc299

Browse files
authored
update google calendar docs (#436)
* update google calendar docs * fix broken links
1 parent dfd1166 commit 64dc299

17 files changed

+263
-221
lines changed

pages/toolkits/productivity/google_calendar.mdx

Lines changed: 84 additions & 88 deletions
Large diffs are not rendered by default.

public/examples/integrations/toolkits/google/calendar/update_event_example_call_tool.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

public/examples/integrations/toolkits/google/calendar/update_event_example_call_tool.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

public/examples/integrations/toolkits/google/calendar/create_event_example_call_tool.js renamed to public/examples/integrations/toolkits/google_calendar/create_event_example_call_tool.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const TOOL_NAME = "GoogleCalendar.CreateEvent";
77

88
// Start the authorization process
99
const authResponse = await client.tools.authorize({
10-
tool_name: TOOL_NAME,
11-
user_id: USER_ID,
10+
tool_name: TOOL_NAME,
11+
user_id: USER_ID
1212
});
1313

1414
if (authResponse.status !== "completed") {
@@ -19,12 +19,19 @@ if (authResponse.status !== "completed") {
1919
await client.auth.waitForCompletion(authResponse);
2020

2121
const toolInput = {
22-
summary: "1:1 with John Doe",
23-
description: "Discuss project updates and next steps",
24-
start_datetime: "2024-12-31T10:00:00",
25-
end_datetime: "2024-12-31T10:30:00",
26-
attendee_emails: ["[email protected]"],
27-
calendar_id: "primary",
22+
"summary": "Product roadmap sync",
23+
"start_datetime": "2025-09-15T10:00:00",
24+
"end_datetime": "2025-09-15T11:00:00",
25+
"calendar_id": "primary",
26+
"description": "Discuss Q4 roadmap, milestones, and blockers.",
27+
"location": "Conference Room B",
28+
"visibility": "private",
29+
"attendee_emails": [
30+
31+
32+
],
33+
"send_notifications_to_attendees": "all",
34+
"add_google_meet": true
2835
};
2936

3037
const response = await client.tools.execute({
@@ -33,4 +40,4 @@ const response = await client.tools.execute({
3340
user_id: USER_ID,
3441
});
3542

36-
console.log(response);
43+
console.log(JSON.stringify(response.output.value, null, 2));
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
from arcadepy import Arcade
23

34
client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
@@ -7,7 +8,7 @@
78

89
auth_response = client.tools.authorize(
910
tool_name=TOOL_NAME,
10-
user_id=USER_ID,
11+
user_id=TOOL_NAME
1112
)
1213

1314
if auth_response.status != "completed":
@@ -17,17 +18,21 @@
1718
client.auth.wait_for_completion(auth_response)
1819

1920
tool_input = {
20-
"summary": "1:1 with John Doe",
21-
"description": "Discuss project updates and next steps",
22-
"start_datetime": "2024-12-31T10:00:00",
23-
"end_datetime": "2024-12-31T10:30:00",
24-
"attendee_emails": ["[email protected]"],
25-
"calendar_id": "primary",
21+
'summary': 'Product roadmap sync',
22+
'start_datetime': '2025-09-15T10:00:00',
23+
'end_datetime': '2025-09-15T11:00:00',
24+
'calendar_id': 'primary',
25+
'description': 'Discuss Q4 roadmap, milestones, and blockers.',
26+
'location': 'Conference Room B',
27+
'visibility': 'private',
28+
'attendee_emails': ['[email protected]', '[email protected]'],
29+
'send_notifications_to_attendees': 'all',
30+
'add_google_meet': True
2631
}
2732

2833
response = client.tools.execute(
2934
tool_name=TOOL_NAME,
3035
input=tool_input,
3136
user_id=USER_ID,
3237
)
33-
print(response)
38+
print(json.dumps(response.output.value, indent=2))

public/examples/integrations/toolkits/google/calendar/delete_event_example_call_tool.js renamed to public/examples/integrations/toolkits/google_calendar/delete_event_example_call_tool.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const TOOL_NAME = "GoogleCalendar.DeleteEvent";
77

88
// Start the authorization process
99
const authResponse = await client.tools.authorize({
10-
tool_name: TOOL_NAME,
11-
user_id: USER_ID,
10+
tool_name: TOOL_NAME,
11+
user_id: USER_ID
1212
});
1313

1414
if (authResponse.status !== "completed") {
@@ -19,8 +19,9 @@ if (authResponse.status !== "completed") {
1919
await client.auth.waitForCompletion(authResponse);
2020

2121
const toolInput = {
22-
event_id: "your_event_id_here",
23-
calendar_id: "primary",
22+
"event_id": "evt_9aBc123X",
23+
"calendar_id": "primary",
24+
"send_updates": "all"
2425
};
2526

2627
const response = await client.tools.execute({
@@ -29,4 +30,4 @@ const response = await client.tools.execute({
2930
user_id: USER_ID,
3031
});
3132

32-
console.log(response);
33+
console.log(JSON.stringify(response.output.value, null, 2));
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
from arcadepy import Arcade
23

34
client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
@@ -7,7 +8,7 @@
78

89
auth_response = client.tools.authorize(
910
tool_name=TOOL_NAME,
10-
user_id=USER_ID,
11+
user_id=TOOL_NAME
1112
)
1213

1314
if auth_response.status != "completed":
@@ -17,13 +18,12 @@
1718
client.auth.wait_for_completion(auth_response)
1819

1920
tool_input = {
20-
"event_id": "your_event_id_here",
21-
"calendar_id": "primary",
21+
'event_id': 'evt_9aBc123X', 'calendar_id': 'primary', 'send_updates': 'all'
2222
}
2323

2424
response = client.tools.execute(
2525
tool_name=TOOL_NAME,
2626
input=tool_input,
2727
user_id=USER_ID,
2828
)
29-
print(response)
29+
print(json.dumps(response.output.value, indent=2))

public/examples/integrations/toolkits/google/calendar/find_free_slots_example_call_tool.js renamed to public/examples/integrations/toolkits/google_calendar/find_time_slots_when_everyone_is_free_example_call_tool.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const TOOL_NAME = "GoogleCalendar.FindTimeSlotsWhenEveryoneIsFree";
77

88
// Start the authorization process
99
const authResponse = await client.tools.authorize({
10-
tool_name: TOOL_NAME,
11-
user_id: USER_ID,
10+
tool_name: TOOL_NAME,
11+
user_id: USER_ID
1212
});
1313

1414
if (authResponse.status !== "completed") {
@@ -19,11 +19,15 @@ if (authResponse.status !== "completed") {
1919
await client.auth.waitForCompletion(authResponse);
2020

2121
const toolInput = {
22-
email_addresses: ["[email protected]", "[email protected]"],
23-
start_date: "2025-04-01",
24-
end_date: "2025-04-07",
25-
start_time_boundary: "09:00",
26-
end_time_boundary: "20:00",
22+
"email_addresses": [
23+
24+
25+
26+
],
27+
"start_date": "2025-09-15",
28+
"end_date": "2025-09-19",
29+
"start_time_boundary": "09:00",
30+
"end_time_boundary": "17:00"
2731
};
2832

2933
const response = await client.tools.execute({
@@ -32,4 +36,4 @@ const response = await client.tools.execute({
3236
user_id: USER_ID,
3337
});
3438

35-
console.log(response);
39+
console.log(JSON.stringify(response.output.value, null, 2));
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
from arcadepy import Arcade
23

34
client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
@@ -7,7 +8,7 @@
78

89
auth_response = client.tools.authorize(
910
tool_name=TOOL_NAME,
10-
user_id=USER_ID,
11+
user_id=TOOL_NAME
1112
)
1213

1314
if auth_response.status != "completed":
@@ -17,16 +18,16 @@
1718
client.auth.wait_for_completion(auth_response)
1819

1920
tool_input = {
20-
"email_addresses": ["john.doe@example.com", "jenifer.smith@example.com"],
21-
"start_date": "2025-04-01",
22-
"end_date": "2025-04-07",
23-
"start_time_boundary": "09:00",
24-
"end_time_boundary": "20:00",
21+
'email_addresses': ['alice@example.com', '[email protected]', 'carol@example.com'],
22+
'start_date': '2025-09-15',
23+
'end_date': '2025-09-19',
24+
'start_time_boundary': '09:00',
25+
'end_time_boundary': '17:00'
2526
}
2627

2728
response = client.tools.execute(
2829
tool_name=TOOL_NAME,
2930
input=tool_input,
3031
user_id=USER_ID,
3132
)
32-
print(response)
33+
print(json.dumps(response.output.value, indent=2))

public/examples/integrations/toolkits/google/calendar/list_calendars_example_call_tool.js renamed to public/examples/integrations/toolkits/google_calendar/list_calendars_example_call_tool.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const TOOL_NAME = "GoogleCalendar.ListCalendars";
77

88
// Start the authorization process
99
const authResponse = await client.tools.authorize({
10-
tool_name: TOOL_NAME,
11-
user_id: USER_ID,
10+
tool_name: TOOL_NAME,
11+
user_id: USER_ID
1212
});
1313

1414
if (authResponse.status !== "completed") {
@@ -19,7 +19,10 @@ if (authResponse.status !== "completed") {
1919
await client.auth.waitForCompletion(authResponse);
2020

2121
const toolInput = {
22-
max_results: 15,
22+
"max_results": 50,
23+
"show_deleted": false,
24+
"show_hidden": false,
25+
"next_page_token": "token_abc123"
2326
};
2427

2528
const response = await client.tools.execute({
@@ -28,4 +31,4 @@ const response = await client.tools.execute({
2831
user_id: USER_ID,
2932
});
3033

31-
console.log(response);
34+
console.log(JSON.stringify(response.output.value, null, 2));

0 commit comments

Comments
 (0)