
Wecomcli Schedule
Integrate calendar scheduling and availability checking into WeCom-based applications and workflows.
Install
npx skills add https://github.com/wecomteam/wecom-cli --skill wecomcli-scheduleWhat is this skill?
- Query user availability and busy slots across WeCom
- Create and manage schedules with attendees and reminders
- CLI-based access to enterprise calendar APIs
Adoption & trust: 9.4k installs on skills.sh; 2.2k GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+200% hot-view momentum).
Recommended Skills
Journey fit
This tool enables developers to build real-time scheduling integrations during the build phase when implementing calendar features and team coordination. It belongs in integrations because it bridges WeCom's native calendar system with external applications, allowing seamless data exchange for scheduling.
Common Questions / FAQ
Is Wecomcli Schedule safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Wecomcli Schedule
# check_availability API 查询指定用户在某时间范围内的忙碌时段。 ## 参数说明 | 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | `check_user_list` | array | ✅ | 用户 ID 列表,1~10 个 | | `start_time` | string | ✅ | 查询开始时间 | | `end_time` | string | ✅ | 查询结束时间 | ## 请求示例 ```bash wecom-cli schedule check_availability '{"check_user_list": ["USER_ID_1", "USER_ID_2"], "start_time": "YYYY-MM-DD HH:mm:ss", "end_time": "YYYY-MM-DD HH:mm:ss"}' ``` ## 返回字段 | 字段 | 类型 | 说明 | |------|------|------| | `errcode` | integer | 返回码,`0` 表示成功 | | `errmsg` | string | 错误信息 | | `user_busy_list` | array | 用户忙碌时段列表 | ### user_busy_list[] 数组中每项字段 | 字段 | 类型 | 说明 | |------|------|------| | `userid` | string | 用户 ID | | `busy_slots` | array | 忙碌时段列表 | | `busy_slots[].start_time` | string | 忙碌时段开始时间 | | `busy_slots[].end_time` | string | 忙碌时段结束时间 | | `busy_slots[].schedule_id` | string | 关联的日程 ID | | `busy_slots[].subject` | string | 日程标题 | ## 响应示例 ```json { "errcode": 0, "errmsg": "ok", "user_busy_list": [ { "userid": "USER_ID", "busy_slots": [ { "start_time": "YYYY-MM-DD HH:mm:ss", "end_time": "YYYY-MM-DD HH:mm:ss", "schedule_id": "SCHEDULE_ID", "subject": "日程标题" } ] } ] } ``` # create_schedule API 创建新日程,支持设置标题、时间、地点、参与者、提醒和重复规则。 ## 参数说明(`schedule` 对象内) | 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | `start_time` | string | ✅ | 开始时间 | | `end_time` | string | ✅ | 结束时间 | | `summary` | string | ❌ | 日程标题,最长 128 字 | | `description` | string | ❌ | 日程描述,最长 1000 字 | | `location` | string | ❌ | 地点,最长 128 字 | | `is_whole_day` | integer | ❌ | 是否全天:`0`-否(默认),`1`-是 | | `attendees` | array | ❌ | 参与者列表,每项含 `userid` | | `reminders` | object | ❌ | 提醒与重复设置(见 [reminders 字段参考](ref-reminders.md)) | ## 请求示例 ```bash wecom-cli schedule create_schedule '{"schedule": {"start_time": "YYYY-MM-DD HH:mm:ss", "end_time": "YYYY-MM-DD HH:mm:ss", "summary": "日程标题", "attendees": [{"userid": "USER_ID"}], "reminders": {"is_remind": 1, "remind_before_event_secs": 3600, "timezone": 8}, "location": "会议地点"}}' ``` ## 返回字段 | 字段 | 类型 | 说明 | |------|------|------| | `errcode` | integer | 返回码,`0` 表示成功 | | `errmsg` | string | 错误信息 | | `schedule_id` | string | 创建成功的日程 ID | ## 响应示例 ```json { "errcode": 0, "errmsg": "ok", "schedule_id": "SCHEDULE_ID" } ``` # get_schedule_detail API 通过日程 ID 批量获取日程详细信息。 ## 参数说明 | 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | `schedule_id_list` | array | ✅ | 日程 ID 列表,1~50 个 | ## 请求示例 ```bash wecom-cli schedule get_schedule_detail '{"schedule_id_list": ["SCHEDULE_ID_1", "SCHEDULE_ID_2"]}' ``` ## 返回字段 | 字段 | 类型 | 说明 | |------|------|------| | `errcode` | integer | 返回码,`0` 表示成功 | | `errmsg` | string | 错误信息 | | `schedule` | array | 日程详情列表 | ### schedule[] 字段 | 字段 | 类型 | 说明 | |------|------|------| | `schedule_id` | string | 日程唯一 ID | | `summary` | string | 日程标题 | | `description` | string | 日程描述 | | `start_time` | integer | 开始时间(Unix 时间戳,秒) | | `end_time` | integer | 结束时间(Unix 时间戳,秒) | | `location` | string | 地点 | | `status` | integer | `0`-正常,`1`-已取消 | | `is_whole_day` | integer | `0`-否,`1`-是 | | `admins` | array | 管理员 userid 列表 | | `attendees` | array | 参与者列表 | | `attendees[].userid` | string | 参与者 userid | | `attendees[].response_status` | integer | 响应状态(见下表) | | `reminders` | object | 提醒设置(见 [reminders 字段参考](ref-reminders.md)) | ### response_status 枚举 | 值 | 含义 | |----|------| | `1` | 待定 | | `2` | 接受 | | `3` | 接受单次 | | `4` | 拒绝 | | `5` | 接受本次及未来 | | `6` | 待定单次 | | `7` | 待定本次及未来 | | `8` | 拒绝单次 | | `9` | 拒绝本次及未来 | ## 响应示例 ```json { "errcode": 0, "errmsg": "ok", "schedule": [ { "schedule_id": "SCHEDULE_ID", "summary": "日程标题", "start_time": 1700000000, "end_time": 1700003600, "location": "会议室", "status": 0, "is_whole_day": 0, "attendees": [ {"