运行时依赖
安装命令
点击复制技能文档
📘 skill.md — Google Calendar via Maton Gateway (Full Spec) 🔐 身份验证 所有请求都需要 Maton API 密钥: -H "Authorization: Bearer $MATON_API_KEY" 设置环境变量: export MATON_API_KEY="YOUR_API_KEY" 🌐 基本 URL https://gateway.maton.ai/google-calendar/calendar/v3 🌍 时区(重要) 始终使用 IANA 时区。 🇦🇺 澳大利亚 / 墨尔本 Australia/Melbourne UTC +10(标准) UTC +11(夏令时) 📅 1. 列出事件 curl "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events?maxResults=20&singleEvents=true&orderBy=startTime" \ -H "Authorization: Bearer $MATON_API_KEY" ➕ 2. 创建事件(基本) curl -X POST "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "summary": "团队会议", "description": "每周同步", "start": { "dateTime": "2026-05-22T10:00:00", "timeZone": "Australia/Melbourne" }, "end": { "dateTime": "2026-05-22T11:00:00", "timeZone": "Australia/Melbourne" } }' 👥 3. 创建事件并发送邀请 curl -X POST "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "summary": "项目启动", "start": { "dateTime": "2026-05-22T14:00:00", "timeZone": "Australia/Melbourne" }, "end": { "dateTime": "2026-05-22T15:00:00", "timeZone": "Australia/Melbourne" }, "attendees": [ { "email": "user1@example.com" }, { "email": "user2@example.com" } ], "sendUpdates": "all" }' 📹 4. 创建事件并使用 Google Meet curl -X POST "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events?conferenceDataVersion=1" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "summary": "客户会议(Google Meet)", "start": { "dateTime": "2026-05-23T09:00:00", "timeZone": "Australia/Melbourne" }, "end": { "dateTime": "2026-05-23T10:00:00", "timeZone": "Australia/Melbourne" }, "attendees": [ { "email": "client@example.com" } ], "conferenceData": { "createRequest": { "requestId": "meet-123456", "conferenceSolutionKey": { "type": "hangoutsMeet" } } } }' ✏️ 5. 更新事件 curl -X PATCH "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events/{EVENT_ID}" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "summary": "更新会议标题", "description": "更新议程" }' 🔁 6. 重定事件 curl -X PATCH "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events/{EVENT_ID}" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "start": { "dateTime": "2026-05-24T12:00:00", "timeZone": "Australia/Melbourne" }, "end": { "dateTime": "2026-05-24T13:00:00", "timeZone": "Australia/Melbourne" } }' 👥 7. 更新与会者 curl -X PATCH "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events/{EVENT_ID}" \ -H "Authorization: Bearer $MATON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "attendees": [ { "email": "newuser@example.com" }, { "email": "existing@example.com" } ], "sendUpdates": "all" }' ❌ 8. 删除事件 curl -X DELETE "https://gateway.maton.ai/google-calendar/calendar/v3/calendars/primary/events/{EVENT_ID}" \ -H "Authorization: Bearer $MATON_API_KEY" 📌 事件对象参考 { "summary": "事件标题", "description": "可选详细信息", "start": { "dateTime": "2026-05-22T10:00:00", "timeZone": "Australia/Melbourne" }, "end": { "dateTime": "2026-05-22T11:00:00", "timeZone": "Australia/Melbourne" } } ⚙️ 关键规则 始终使用 IANA 时区 使用 PATCH 进行更新 使用 sendUpdates: "all" 发送邀请 使用 conferenceDataVersion=1 进行 Google Meet 会议