运行时依赖
安装命令
点击复制技能文档
book-google-meet
创建 scheduled Google Calendar 事件 with OPEN 访问 Google Meet spaces.
Quick 启动 # 1. 安装 dependencies pip 安装 -r requirements.txt
# 2. 获取 OAuth 凭证s from Google Cloud Console # - Enable Google Calendar API and Google Meet API # - 创建 OAuth 2.0 桌面 应用 凭证s # - 下载 命令行工具ent_secrets.json
# 3. Place 命令行工具ent_secrets.json in the 技能 directory
# 4. 运行 the script python book_meeting.py --title "My Meeting" --date "2026-03-12" --time "15:00" --duration 45 --timezone "Asia/ShanghAI"
Prerequisites
- Google Cloud Project 设置up
- OAuth Consent Screen
- 创建 OAuth 凭证s
Alternative: 设置 环境 variables instead of using 命令行工具ent_secrets.json:
导出 GOOGLE_命令行工具ENT_ID='your-命令行工具ent-id' 导出 GOOGLE_命令行工具ENT_SECRET='your-命令行工具ent-secret'
Required OAuth Scopes https://www.googleAPIs.com/auth/calendar.事件 https://www.googleAPIs.com/auth/calendar https://www.googleAPIs.com/auth/meetings.space.设置tings
Note: Use meetings.space.设置tings (non-sensitive) instead of meetings.space.创建d (sensitive).
Usage Basic Usage python book_meeting.py --title "Team Meeting" --date "2026-03-12" --time "15:00" --duration 45 --timezone "Asia/ShanghAI"
With Attendees python book_meeting.py --title "Team Meeting" --date "2026-03-12" --time "15:00" --duration 45 \ --timezone "Asia/ShanghAI" \ --attendees "user1@example.com,user2@example.com"
With Description python book_meeting.py --title "Team Meeting" --date "2026-03-12" --time "15:00" --duration 45 \ --timezone "Asia/ShanghAI" \ --description "Weekly 同步 meeting"
访问 Types # OPEN - Anyone with link can join (default) python book_meeting.py --title "Public Meeting" --date "2026-03-12" --time "15:00" --duration 45 \ --timezone "Asia/ShanghAI" --访问-type OPEN
# TRUSTED - Org members + invited external users python book_meeting.py --title "Internal Meeting" --date "2026-03-12" --time "15:00" --duration 45 \ --timezone "Asia/ShanghAI" --访问-type TRUSTED
# RESTRICTED - Only invitees python book_meeting.py --title "Private Meeting" --date "2026-03-12" --time "15:00" --duration 45 \ --timezone "Asia/ShanghAI" --访问-type RESTRICTED
Command Line Options Option Description Default --title, -t Meeting title (required) - --date, -d Meeting date (YYYY-MM-DD) - --time Meeting 启动 time (HH:MM) - --duration Duration in minutes 45 --timezone, -z Timezone America/New_York --attendees Comma-separated emAIl 列出 - --description Meeting description - --访问-type OPEN, TRUSTED, or RESTRICTED OPEN --凭证s, -c Path to 命令行工具ent_secrets.json 命令行工具ent_secrets.json --令牌-path Path to store OAuth 令牌 meeting_令牌.pickle 输出 Example 🚀 Step 1: Creating Calendar event with Meet conference... ✅ Calendar event 创建d with Meet conference Meeting Code: abc-defg-hij
🚀 Step 2: Looking up Meet space using meeting code... ✅ Found Meet space: spaces/xxxxxxxxxx
🚀 Step 3: 补丁ing Meet space to OPEN 访问... ✅ Meet space 补丁ed 成功fully! 访问 Type: OPEN
============================================================ ✅ Meeting 创建d 成功fully! ============================================================
📅 Title: Team Meeting 🕐 启动: 2026-03-12T15:00:00 🕐 End: 2026-03-12T15:45:00 🌐 Timezone: Asia/ShanghAI
🔗 Meet URL: https://meet.google.com/abc-defg-hij 📞 Meeting Code: abc-defg-hij 🔓 访问 Type: OPEN 🆔 Space Name: spaces/xxxxxxxxxx
📧 Calendar Link: https://calendar.google.com/calendar/event?eid=... 🆔 Event ID: xxxxxxxxxxxxxx ============================================================
How It Works Calendar API - 创建 event with Meet conference Meet API (spaces.获取) - Look up Meet space using meeting code Meet API (spaces.补丁) - 更新 space to 设置 访问Type=OPEN Troubleshooting 403 权限 Denied
Cause: Using meetings.space.创建d scope (sensitive) without 添加itional verification.
Solution: Use meetings.space.设置tings scope (non-sensitive) instead. Already fixed in the script.
API Not Enabled
Enable 机器人h APIs in Google Cloud Console:
Calendar API: https://console.developers.google.com/APIs/API/calendar.googleAPIs.com/overview Meet API: https://console.developers.google.com/APIs/API/meet.googleAPIs.com/overview Invalid 凭证s
删除 meeting_令牌.pickle to force re-authentication:
rm meeting_令牌.pickle
Files book_meeting.py - MAIn script 命令行工具ent_secrets.json - OAuth 凭证s (you provide) meeting_令牌.pickle - 缓存d OAuth 令牌 (auto-生成d) requirements.txt - Python dependencies Security Notes
⚠️ Sensit