日程列表
最近更新时间: 2023年10月20日 08时05分59秒
能力接口
描述
日程列表。
支持的模式
客户端模式,授权码模式
请求方法
GET
请求地址
https://api.tongji.edu.cn/v1/infra/calendar/list
数据来源
请求参数
参数名 | 是否必填 | 备注 |
---|---|---|
userId | 是 | 用户工号 |
startTime | 是 | 开始时间 格式yyyy-MM-dd |
endTime | 是 | 结束时间 格式yyyy-MM-dd |
返回参数
参数名 | 类型 | 备注 | 码表 |
---|---|---|---|
calWid | string | 日历id 1:个人 2:群组 | |
eventId | string | 日程id | |
userId | string | 用户工号 | |
eventTitle | string | 日程标题 | |
startTime | string | 日程开始时间 | |
startDate | string | 日程开始日期 | |
endTime | string | 日程结束时间 | |
location | string | 日程地点 | |
eventDesc | string | 日程描述 | |
linkUrl | string | 日程链接详情 | |
repeatType | int | 日程重复类型(0不重复,1每天 2每周 3每月第N天 4每年 5(按月-周重复) 第n周的n个星期几 ) | |
endTimeOrigin | string | 原始日程结束时间 | |
remindChannel | string | 提醒通道 多个用,分割 INBOX 收件箱 EMAIL 邮箱 SMS 短信 QYWECHAT 企业微信 DINGTALK 钉钉 WeChatService 微信服务号 WELINK 华为weilink | |
remindTime | int[] | 提醒时间,表示日程开始前多久提醒 | |
eventRepeatData | int | 重复间隔(重复类型时这个必填), | |
startTimeOrigin | string | 原始开始时间 | |
isAllDay | int | 是否是全天日程 1:是 0:否 | |
dingSeriesMasterId | string | 钉钉上住日程的id | |
dayOfMonth | int | 每个月第几天 eventRepeatType 为3时使用 | |
dayOfWeek | int | 英文小写单词指定星期几,如果有多个值逗号分割。eventRepeatType 为3时使用,可以传多个;eventRepeatType 为5时使用,只能传1个 | |
weekIndex | string | 当重复类型是每周,用于指定每月第几周(first second third fourth last ) eventRepeatType 为5时使用 | |
rangeType | string | 循环范围类型:noEnd:永不结束 endDate:循环至指定日期结束 numbered:循环指定次数后结束 | |
rangeNum | int | 循环次数(rangTye 是numbered ) | |
originalEventWid | string | 父日程的wid | |
isDingdingCal | int | 是否是从钉钉同步过来的日程 1:是 0否 | |
isOrganizer | int | 是否是创建人 1:是 0:否 | |
deadline | string | 日程截至日期 yyyy-MM-dd | |
dubboCalGroupReceiver | object | 群组接收人 | |
userInfos | object[] | 参与人信息 | |
userId | string | 参与人账号 | |
wid | string | wid | |
userName | string | 参与人姓名 | |
creatorAccount | string | 创建人工号—在群组日程有效 | |
userName | string | 创建人姓名—在群组日程有效 | |
isInGroup | int | 是否在创建者组里面 1:在创建组,表示该用户可以创建群组 0:否 不可以创建组 |
请求示例
curl -X GET \
'https://api.tongji.edu.cn/v1/infra/calendar/list' \
-H 'userId: ' \
-H 'startTime: ' \
-H 'endTime: '
返回示例
{
"code": "A00000",
"msg": "操作成功",
"data": {
"2022-09-03": [
{
"calWid": "1",
"eventId": "1015276769579487232_1662134400000",
"userId": "******",
"eventTitle": "zjs09-01 每周56重复",
"startTime": "2022-09-03T00:00:00",
"startDate": "2022-09-03",
"endTime": "2022-09-03T00:00:00",
"location": "12323",
"eventDesc": "描述",
"linkUrl": "http://www.baidu.com",
"eventAlarm": null,
"repeatEventWid": null,
"repeatType": 2,
"endTimeOrigin": "2022-09-03T00:00:00",
"remindChannel": "INBOX",
"remindTime": [
15
],
"eventRepeatData": 1,
"startTimeOrigin": "2022-09-03T00:00:00",
"isAllDay": 0,
"dingSeriesMasterId": null,
"dayOfMonth": null,
"dayOfWeek": "friday,saturday",
"weekIndex": null,
"rangeType": "noEnd",
"rangeNum": null,
"originalEventWid": "1015276769579487232",
"isDingdingCal": 0,
"isOrganizer": 1,
"deadline": null,
"dubboCalGroupReceiver": null,
"creatorAccount": null,
"userName": null,
"isInGroup": 0
}
],
"2022-09-26": [
{
"calWid": "2",
"eventId": "1008795029549731840_1664150400000",
"userId": "******",
"eventTitle": "群组01每周1",
"startTime": "2022-09-26T08:00:00",
"startDate": "2022-09-26",
"endTime": "2022-09-26T09:00:00",
"location": "",
"eventDesc": "",
"linkUrl": "",
"eventAlarm": null,
"repeatEventWid": null,
"repeatType": 2,
"endTimeOrigin": "2022-09-26T09:00:00",
"remindChannel": "INBOX",
"remindTime": [
15
],
"eventRepeatData": 1,
"startTimeOrigin": "2022-09-26T08:00:00",
"isAllDay": 0,
"dingSeriesMasterId": null,
"dayOfMonth": null,
"dayOfWeek": "monday",
"weekIndex": null,
"rangeType": "noEnd",
"rangeNum": null,
"originalEventWid": "1008795029549731840",
"isDingdingCal": 0,
"isOrganizer": 1,
"deadline": null,
"dubboCalGroupReceiver": {
"orgs": [],
"userGroups": [],
"userInfos": []
},
"creatorAccount": "******",
"userName": "******",
"isInGroup": 1
},
{
"calWid": "2",
"eventId": "1008799159445999616_1664187060000",
"userId": "******",
"eventTitle": "群组提醒【6】",
"startTime": "2022-09-26T18:11:00",
"startDate": "2022-09-26",
"endTime": "2022-09-26T18:11:00",
"location": "",
"eventDesc": "",
"linkUrl": "",
"eventAlarm": null,
"repeatEventWid": null,
"repeatType": 2,
"endTimeOrigin": "2022-09-26T18:11:00",
"remindChannel": "INBOX",
"remindTime": [
0
],
"eventRepeatData": 1,
"startTimeOrigin": "2022-09-26T18:11:00",
"isAllDay": 0,
"dingSeriesMasterId": null,
"dayOfMonth": null,
"dayOfWeek": "monday",
"weekIndex": null,
"rangeType": "noEnd",
"rangeNum": null,
"originalEventWid": "1008799159445999616",
"isDingdingCal": 0,
"isOrganizer": 1,
"deadline": null,
"dubboCalGroupReceiver": {
"orgs": [],
"userGroups": [],
"userInfos": []
},
"creatorAccount": "******",
"userName": "******",
"isInGroup": 1
},
{
"calWid": "2",
"eventId": "1008802763351379968_1664187660000",
"userId": "******",
"eventTitle": "群组【7】",
"startTime": "2022-09-26T18:21:00",
"startDate": "2022-09-26",
"endTime": "2022-09-26T19:21:00",
"location": "",
"eventDesc": "",
"linkUrl": "",
"eventAlarm": null,
"repeatEventWid": null,
"repeatType": 2,
"endTimeOrigin": "2022-09-26T19:21:00",
"remindChannel": "INBOX",
"remindTime": [
15
],
"eventRepeatData": 1,
"startTimeOrigin": "2022-09-26T18:21:00",
"isAllDay": 0,
"dingSeriesMasterId": null,
"dayOfMonth": null,
"dayOfWeek": "monday",
"weekIndex": null,
"rangeType": "noEnd",
"rangeNum": null,
"originalEventWid": "1008802763351379968",
"isDingdingCal": 0,
"isOrganizer": 1,
"deadline": null,
"dubboCalGroupReceiver": {
"orgs": [],
"userGroups": [],
"userInfos": []
},
"creatorAccount": "******",
"userName": "******",
"isInGroup": 1
}
]
}
}