🔵 Google Chat API 測試

⚙️ 設定步驟

  1. 前往 Google Cloud Console
  2. 建立或選擇專案,啟用 Google Chat API
  3. 建立 Service Account,下載 JSON 金鑰檔
  4. 將金鑰檔放到 google/service-account.json
  5. 在 Chat API 設定中設定 App,HTTP endpoint 填入你的 webhook.php 網址
  6. 在 Google Chat 中將 Bot 加入聊天室

📋 列出聊天室

列出此 Bot 已加入的所有聊天室(Spaces)

💬 發送訊息

🔗 Webhook 測試

模擬 Google Chat 發送事件到 webhook.php(本地測試用)

📝 Debug Log

查看 webhook.php 收到的事件記錄