Loading...
Loading...
Compare original and translation side by side
pip install --user google-auth google-auth-oauthlib google-api-python-client keyring pyyamlpip install --user google-auth google-auth-oauthlib google-api-python-client keyring pyyamlpython scripts/google-calendar.py checkpython scripts/google-calendar.py check~/.config/agent-skills/google.yamloauth_client:
client_id: your-client-id.apps.googleusercontent.com
client_secret: your-client-secretpython scripts/google-calendar.py check~/.config/agent-skills/google.yamloauth_client:
client_id: your-client-id.apps.googleusercontent.com
client_secret: your-client-secretpython scripts/google-calendar.py check| Scope | Permission | Used For |
|---|---|---|
| Read calendars and events | list, get events |
| Create/edit/delete events | create, update, delete |
| 权限范围 | 权限说明 | 适用场景 |
|---|---|---|
| 读取日历和日程 | 列出、获取日程 |
| 创建/编辑/删除日程 | 创建、更新、删除日程 |
keyring del agent-skills google-calendar-token-jsonpython scripts/google-calendar.py checkkeyring del agent-skills google-calendar-token-jsonpython scripts/google-calendar.py checkpython scripts/google-calendar.py checkpython scripts/google-calendar.py checkpython scripts/google-calendar.py auth setup \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET~/.config/agent-skills/google-calendar.yamlpython scripts/google-calendar.py auth setup \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET~/.config/agent-skills/google-calendar.yamlundefinedundefined
**Arguments:**
- `--json`: Output as JSON
**参数:**
- `--json`: 以JSON格式输出undefinedundefined
**Arguments:**
- `calendar_id`: Calendar ID or "primary" (required)
- `--json`: Output as JSON
**参数:**
- `calendar_id`: 日历ID或"primary"(必填)
- `--json`: 以JSON格式输出undefinedundefined
**Arguments:**
- `--calendar`: Calendar ID (default: "primary")
- `--time-min`: Start time (RFC3339 timestamp, e.g., "2026-01-24T00:00:00Z")
- `--time-max`: End time (RFC3339 timestamp)
- `--max-results`: Maximum number of results (default: 10)
- `--query`: Free text search query
- `--json`: Output as JSON
**Time Format Examples:**
- UTC: `2026-01-24T10:00:00Z`
- With timezone: `2026-01-24T10:00:00-05:00` (EST)
- Date only (all-day): `2026-01-24`
**参数:**
- `--calendar`: 日历ID(默认:"primary")
- `--time-min`: 开始时间(RFC3339时间戳,例如"2026-01-24T00:00:00Z")
- `--time-max`: 结束时间(RFC3339时间戳)
- `--max-results`: 最大结果数量(默认:10)
- `--query`: 自由文本搜索关键词
- `--json`: 以JSON格式输出
**时间格式示例:**
- UTC时间: `2026-01-24T10:00:00Z`
- 带时区: `2026-01-24T10:00:00-05:00`(美国东部时间)
- 仅日期(全天日程): `2026-01-24`undefinedundefined
**Arguments:**
- `event_id`: Event ID (required)
- `--calendar`: Calendar ID (default: "primary")
- `--json`: Output as JSON
**参数:**
- `event_id`: 日程ID(必填)
- `--calendar`: 日历ID(默认:"primary")
- `--json`: 以JSON格式输出undefinedundefined
**Arguments:**
- `--summary`: Event title (required)
- `--start`: Start time - RFC3339 timestamp or YYYY-MM-DD for all-day (required)
- `--end`: End time - RFC3339 timestamp or YYYY-MM-DD for all-day (required)
- `--calendar`: Calendar ID (default: "primary")
- `--description`: Event description
- `--location`: Event location
- `--attendees`: Comma-separated list of attendee email addresses
- `--timezone`: Timezone for all-day events (e.g., "America/New_York")
- `--json`: Output as JSON
**参数:**
- `--summary`: 日程标题(必填)
- `--start`: 开始时间 - RFC3339时间戳或YYYY-MM-DD格式(全天日程)(必填)
- `--end`: 结束时间 - RFC3339时间戳或YYYY-MM-DD格式(全天日程)(必填)
- `--calendar`: 日历ID(默认:"primary")
- `--description`: 日程描述
- `--location`: 日程地点
- `--attendees`: 参会者邮箱地址,以逗号分隔
- `--timezone`: 全天日程的时区(例如"America/New_York")
- `--json`: 以JSON格式输出undefinedundefined
**Arguments:**
- `event_id`: Event ID (required)
- `--calendar`: Calendar ID (default: "primary")
- `--summary`: New event title
- `--start`: New start time (RFC3339 or YYYY-MM-DD)
- `--end`: New end time (RFC3339 or YYYY-MM-DD)
- `--description`: New description
- `--location`: New location
- `--json`: Output as JSON
**参数:**
- `event_id`: 日程ID(必填)
- `--calendar`: 日历ID(默认:"primary")
- `--summary`: 新的日程标题
- `--start`: 新的开始时间(RFC3339或YYYY-MM-DD格式)
- `--end`: 新的结束时间(RFC3339或YYYY-MM-DD格式)
- `--description`: 新的日程描述
- `--location`: 新的日程地点
- `--json`: 以JSON格式输出undefinedundefined
**Arguments:**
- `event_id`: Event ID (required)
- `--calendar`: Calendar ID (default: "primary")
- `--json`: Output as JSON (for consistency, no output on success)
**参数:**
- `event_id`: 日程ID(必填)
- `--calendar`: 日历ID(默认:"primary")
- `--json`: 以JSON格式输出(成功时无输出,仅为格式统一)undefinedundefined
**Arguments:**
- `--start`: Start time (RFC3339 timestamp, required)
- `--end`: End time (RFC3339 timestamp, required)
- `--calendars`: Comma-separated calendar IDs (default: "primary")
- `--json`: Output as JSON
**参数:**
- `--start`: 开始时间(RFC3339时间戳,必填)
- `--end`: 结束时间(RFC3339时间戳,必填)
- `--calendars`: 日历ID列表,以逗号分隔(默认:"primary")
- `--json`: 以JSON格式输出python scripts/google-calendar.py checkpython scripts/google-calendar.py checkundefinedundefinedundefinedundefinedpython scripts/google-calendar.py events create \
--summary "Team Standup" \
--start "2026-01-25T09:00:00-05:00" \
--end "2026-01-25T09:30:00-05:00" \
--location "Zoom" \
--attendees "team@example.com"python scripts/google-calendar.py events create \
--summary "Team Standup" \
--start "2026-01-25T09:00:00-05:00" \
--end "2026-01-25T09:30:00-05:00" \
--location "Zoom" \
--attendees "team@example.com"python scripts/google-calendar.py events create \
--summary "Company Holiday" \
--start "2026-12-25" \
--end "2026-12-26" \
--timezone "America/New_York"python scripts/google-calendar.py events create \
--summary "Company Holiday" \
--start "2026-12-25" \
--end "2026-12-26" \
--timezone "America/New_York"python scripts/google-calendar.py events update EVENT_ID \
--start "2026-01-24T14:00:00Z" \
--end "2026-01-24T15:00:00Z"python scripts/google-calendar.py events update EVENT_ID \
--start "2026-01-24T14:00:00Z" \
--end "2026-01-24T15:00:00Z"python scripts/google-calendar.py freebusy \
--start "2026-01-24T08:00:00-05:00" \
--end "2026-01-24T17:00:00-05:00" \
--calendars "primary,colleague@example.com"python scripts/google-calendar.py freebusy \
--start "2026-01-24T08:00:00-05:00" \
--end "2026-01-24T17:00:00-05:00" \
--calendars "primary,colleague@example.com"python scripts/google-calendar.py events list --query "project review"python scripts/google-calendar.py events list --query "project review"python scripts/google-calendar.py events delete EVENT_IDpython scripts/google-calendar.py events delete EVENT_ID2026-01-24T10:00:00-05:00 # 10 AM EST
2026-01-24T10:00:00Z # 10 AM UTC
2026-01-24T10:00:00+01:00 # 10 AM CET2026-01-24T10:00:00-05:00 # 美国东部时间上午10点
2026-01-24T10:00:00Z # UTC时间上午10点
2026-01-24T10:00:00+01:00 # 中欧时间上午10点2026-01-24 # All day on January 24, 2026--timezone2026-01-24 # 2026年1月24日全天--timezonepython scripts/google-calendar.py checkpython scripts/google-calendar.py check~/.config/agent-skills/google.yamlkeyring del agent-skills google-calendar-token-json
python scripts/google-calendar.py check~/.config/agent-skills/google.yamlkeyring del agent-skills google-calendar-token-json
python scripts/google-calendar.py checkpip install --user google-auth google-auth-oauthlib google-api-python-client keyring pyyamlpip install --user google-auth google-auth-oauthlib google-api-python-client keyring pyyaml--timezone--timezonehttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.events~/.config/agent-skills/google-calendar.yaml~/.config/agent-skills/google-calendar.yaml