- 通讯录管理
- 客户联系
- 企业服务人员管理
- 客户管理
- 客户标签管理
- 在职继承
- 离职继承
- 客户群管理
- 客户朋友圈
- 消息推送
- 统计管理
- 管理商 品图册
- 管理聊天敏感词
- 上传附件资源POST
- 家校沟通
- 微信客服
- 应用管理
- 消息推送
- OA
- 效率工具
- 家校应用
- 企业支付
- 企业互联
- 上下游
- 开发指南
- 自建应用代开发
日程接口 获取日历下的日程列表
POST
http://127.0.0.1/cgi-bin/oa/schedule/get_by_calendar
第三方应用开发/效率工具/日程/日程接口
最后修改时间:2022-08-30 03:03:37
责任人:未设置
仅可获取应用自己创建的日历下的日程。
当日程较多时,需要使用参数是offset及limit 分页获取,注意offset是以0为起点,这里以图例简单说明:
https://p.qpic.cn/pic_wework/23479275/c4c278d43a5f745881cf2b83b6c955e1a7f0091d48fb0822/0[https://p.qpic.cn/pic_wework/23479275/c4c278d43a5f745881cf2b83b6c955e1a7f0091d48fb0822/0]
page_size/page_index图示说明
当获取到的 schedule_list 是空的时候,表示offset已经过大,此时应终止获取。若有新增日程,可在此基础上继续增量获取。
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90135/93648
https://open.work.weixin.qq.com/api/doc/90001/90143/93703
请求参数
Query 参数
access_token
string
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
offset
integer <int32>
可选
cal_id
string
日历ID
limit
integer <int32>
可选
示例
{
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
"offset": 100,
"limit": 1000
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1/cgi-bin/oa/schedule/get_by_calendar?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
"offset": 100,
"limit": 1000
}'
返回响应
🟢200成功
application/json
Body
errcode
integer <int32>
可选
errmsg
string
可选
schedule_list
array [object {12}]
可选
summary
string
日程标题
reminders
object
提醒相关信息
sequence
integer <int32>
可选
start_time
integer <int32>
可选
cal_id
string
可选
attendees
array [object {2}]
可选
end_time
integer <int32>
可选
description
string
日程描述
location
string
可选
schedule_id
string
可选
status
integer <int32>
可选
organizer
string
必需
示例
{
"errcode": 0,
"errmsg": "string",
"schedule_list": [
{
"summary": "string",
"reminders": {
"remind_before_event_secs": 0,
"is_repeat": 0,
"repeat_type": 0,
"timezone": 0,
"repeat_until": 0,
"is_remind": 0,
"repeat_interval": 0,
"repeat_day_of_month": [
0
],
"repeat_day_of_week": [
0
],
"is_custom_repeat": 0
},
"sequence": 0,
"start_time": 0,
"cal_id": "string",
"attendees": [
{
"response_status": 0,
"userid": "string"
}
],
"end_time": 0,
"description": "string",
"location": "string",
"schedule_id": "string",
"status": 0,
"organizer": "string"
}
]
}

修改于 2022-08-30 03:03:37