openclaw - 💡(How to fix) Fix feat(feishu): 缺少日历(Calendar)API 支持 [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#55033Fetched 2026-04-08 01:33:25
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants
RAW_BUFFERClick to expand / collapse

背景

飞书扩展当前仅支持文档(Doc)、云盘(Drive)、Wiki、多维表格(Bitable)等功能,但缺少日历(Calendar)API 的支持。

使用场景

用户通过飞书分享日历事件邀请时,助手无法读取日历信息,导致:

  1. 无法确认会议时间是否正确
  2. 无法自动将会议添加到待办跟踪
  3. 机器人无法代替用户响应日历邀请

建议

参考飞书开放平台日历 API(v4),实现以下能力:

核心接口

  • GET /calendar/v4/calendars/primary — 获取主日历
  • GET /calendar/v4/events — 读取日程列表
  • GET /calendar/v4/events/{event_id} — 读取单个日程详情
  • POST /calendar/v4/events — 创建日程(可选)

权限要求

  • calendar:calendar:readonly
  • calendar:event:readonly
  • calendar:event:create(可选)

参考文档

飞书日历 API:https://open.feishu.cn/document/server-docs/calendar-v4/calendar-introduction

extent analysis

Fix Plan

To add calendar API support, implement the following steps:

  • Register for the required permissions: calendar:calendar:readonly, calendar:event:readonly, and optionally calendar:event:create.
  • Use the Feishu API to fetch calendar data:
    • Get the primary calendar: GET /calendar/v4/calendars/primary
    • Get the event list: GET /calendar/v4/events
    • Get a single event detail: GET /calendar/v4/events/{event_id}
    • Create an event (optional): POST /calendar/v4/events

Example code in Python:

import requests

# Replace with your Feishu API token
token = "your_token"

# Get primary calendar
response = requests.get(
    "https://open.feishu.cn/open-apis/calendar/v4/calendars/primary",
    headers={"Authorization": f"Bearer {token}"}
)

# Get event list
response = requests.get(
    "https://open.feishu.cn/open-apis/calendar/v4/events",
    headers={"Authorization": f"Bearer {token}"}
)

# Get single event detail
event_id = "event_id"
response = requests.get(
    f"https://open.feishu.cn/open-apis/calendar/v4/events/{event_id}",
    headers={"Authorization": f"Bearer {token}"}
)

# Create an event (optional)
event_data = {
    "summary": "Test Event",
    "description": "Test event description",
    "start": {"dateTime": "2024-09-17T10:00:00"},
    "end": {"dateTime": "2024-09-17T11:00:00"}
}
response = requests.post(
    "https://open.feishu.cn/open-apis/calendar/v4/events",
    headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json"},
    json=event_data
)

Verification

Verify that the fix worked by checking the API responses and ensuring that the calendar data is correctly fetched and created.

Extra Tips

  • Make sure to handle errors and exceptions properly.
  • Refer to the Feishu API documentation for the most up-to-date information on the calendar API.
  • Test the implementation thoroughly to ensure it works as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING