返回顶部
f

feishu-calendar飞书日历

创建飞书日历事件和视频会议。通过日历 API 创建,自动关联飞书视频会议。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
295
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

feishu-calendar

飞书日历 & 视频会议

通过飞书日历 API 创建事件,可选择关联飞书视频会议。

准备工作

1. OAuth 授权(首次)

需要获取 useraccesstoken,流程:

  1. 1. 在飞书开放平台后台开通权限:

- calendar:calendar
- calendar:calendar.event:create
- vc:meeting
  1. 2. 配置重定向 URL(如 http://127.0.0.1:8080/callback)
  2. 生成授权链接并让用户授权

2. Token 管理

  • - accesstoken 有效期约 2 小时
  • refreshtoken 有效期约 30 天
  • 过期后用 refresh_token 刷新

Token 保存在 ~/.openclaw/workspace/feishu_tokens.md

使用方式

创建日历会议(带视频会议)

bash

参数


USERTOKEN=xxx # 从 feishutokens.md 读取
CALENDARID=feishu.cnxxx@group.calendar.feishu.cn

时间戳计算(明天 10:00-11:00 北京时间)

START_TS=1772071200 # 2026-02-26 10:00:00 END_TS=1772074800 # 2026-02-26 11:00:00

创建日历事件(带视频会议)

根据用户输入选择添加字段,不要添加用户未指定的字段

必填字段

JSON={ starttime: {timestamp: $STARTTS, timezone: Asia/Shanghai}, endtime: {timestamp: $ENDTS, timezone: Asia/Shanghai}, summary: 会议标题, vchat: {vc_type: vc} }

可选:用户指定描述时添加

description: 描述内容

可选:用户指定地点时添加

location: 地点

curl -s -X POST https://open.feishu.cn/open-apis/calendar/v4/calendars/${CALENDAR_ID}/events \
-H Authorization: Bearer $USER_TOKEN \
-H Content-Type: application/json \
-d $JSON

参数说明

根据用户输入决定是否包含以下字段:

  • - summary: 会议标题(必填)
  • description: 会议描述(用户指定时)
  • starttime: 开始时间(必填)
  • endtime: 结束时间(必填)
  • location: 会议地点(用户指定时)
  • vchat.vc_type: 设为 vc 创建视频会议

时间戳计算

python
import datetime
dt = datetime.datetime(2026, 2, 26, 10, 0, 0, tzinfo=datetime.timezone(datetime.timedelta(hours=8)))
timestamp = int(dt.timestamp())

获取用户日历 ID

bash
curl -s https://open.feishu.cn/open-apis/calendar/v4/calendars \
-H Authorization: Bearer $USER_TOKEN

返回的 calendar_id 即为主日历 ID

返回结果示例

成功创建后,返回要点:

  • - 会议标题
  • 日期和时间
  • 会议链接

示例:

✅ 会议已创建!
📅 2026年2月27日 10:00-11:00
🎥 https://vc.feishu.cn/j/xxx

注意事项

  • - 如果用户没有指定描述(description),不要添加额外的描述
  • 如果用户没有指定地点(location),不要添加

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 feishu-calendar-meeting-1776171556 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 feishu-calendar-meeting-1776171556 技能

通过命令行安装

skillhub install feishu-calendar-meeting-1776171556

下载

⬇ 下载 feishu-calendar v1.0.0(免费)

文件大小: 2.23 KB | 发布时间: 2026-4-15 11:05

v1.0.0 最新 2026-4-15 11:05
Version 1.0.0 — Initial release with major changes:

- All code files and implementation scripts removed
- English documentation replaced with simplified Chinese guide for using Feishu (Lark) calendar API
- Usage now focuses on creating calendar events and video meetings via API and command line, with OAuth setup instructions
- Only core information about required tokens, request format, and sample API calls retained
- Significant simplification: event sync, calendar listing, and local routines no longer included

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部