更新日期:     浏览次数:

1. 会议相关接口

1.1. 1、新增单个会议接口

http://yunzhijia.com/gateway/cloudwork/meeting/create?accessToken=xxx

header:

Content-Type:application/json

参数:

参数 类型 注释
openid String 会议创建者的oid
title String 会议标题
content String 会议内容
meetingPlace String 会议地址
startDate Long 会议开始时间戳
endDate Long 会议结束时间戳
roomId String 会议室ID
noticeTime int 提醒时间(-1:不提醒、0:开始时间提醒、15:开始时间前15分钟提醒、60:开始时间前1小时提醒)
topState int 是否标记为重要(0:否、1:是)
actors 集合 协作人oid的集合
type String 会议类型(null:普通会议、sign:线下签到类会议、voice:语音类会议)
submitExperience boolean 是否需要提交会议纪要(新的体会、总结)
{
    "openid": "5a67e08d00b0e8dfe4aab4fa",
    "title": "测试会议",
    "content":"新增会议测试",
    "meetingPlace":"云8会议室",
    "startDate":1522729800000,
    "endDate":1522737000000,
    "roomId":"xxxxx",
    "noticeTime": 0,
    "topState": 0,
    "actors": ["xxxxxx","xxxxxx"],
    "type":"xxxx",
    "submitExperience":true
}

返回结果示例:

{
    "data": {
        "meetingId":"xxxxx"//添加成功后会议id
    },
    "error": null,
    "errorCode": 0,
    "success": true
}

1.2. 2、修改单个会议接口

http://yunzhijia.com/gateway/cloudwork/meeting/modify?accessToken=xxxx

header:

Content-Type:application/json

参数:

参数 类型 注释
id String 会议ID
openid String 会议创建者的oid
title String 会议标题
content String 会议内容
meetingPlace String 会议地址
startDate Long 会议开始时间戳
endDate Long 会议结束时间戳
roomId String 会议室ID
noticeTime int 提醒时间(-1:不提醒、0:开始时间提醒、15:开始时间前15分钟提醒、60:开始时间前1小时提醒)
topState int 是否标记为重要(0:否、1:是)
actors 集合 协作人oid的集合(即原来的actors加上addActors减去delActors)
addActors 集合 新加的协作人oid集合
delActors 集合 删除的协作人oid集合
submitExperience boolean 是否需要提交会议纪要(新的体会、总结)
{
    "id":"5ac2e3971834a1bc583d9bb8",
    "openid": "5a67e08d00b0e8dfe4aab4fa",
    "title": "测试会议",
    "content":"更新会议测试",
    "meetingPlace":"云8会议室",
    "startDate":1522729800000,
    "endDate":1522737000000,
    "roomId":"xxxxx",
    "noticeTime": 0,
    "topState": 0,
    "actors": ["xxxxxx","xxxxxx"],
    "addActors": ["xxxxxx","xxxxxx"],
    "delActors": ["xxxxxx","xxxxxx"],
    "submitExperience":true
}

返回结果示例:

{
    "success": true,
    "errorCode": 0,
    "error": null,
    "data":null
}

1.3. 3、取消单个会议接口

http://yunzhijia.com/gateway/cloudwork/meeting/cancel?accessToken=xxxx

header:

Content-Type:application/json

参数:

参数 类型 注释
id String 会议ID
openid String 会议创建者的oid

PS:必须是创建人创建的会议,才可以取消

{
    "openid": "5a67e08d00b0e8dfe4aab4fa",
    "id": "5b33275f14cada62e4e44840"
}

返回结果示例:

{
    "success": true,
    "errorCode": 0,
    "error": null,
    "data":null
}

1.4. 4、新增重复会议接口

http://yunzhijia.com/gateway/cloudwork/meeting/repeatMeeting?accessToken=xxxx

header:

Content-Type:application/json

参数:

参数 类型 注释
openid String 会议创建者的oid
title String 会议标题
content String 会议内容
startDate Long 会议开始时间戳
endDate Long 会议结束时间戳
noticeTime int 提醒时间(-1:不提醒、0:开始时间提醒、15:开始时间前15分钟提醒、60:开始时间前1小时提醒)
topState int 是否标记为重要(0:否、1:是)
actors 集合 协作人oid的集合
submitExperience boolean 是否需要提交会议纪要(新的体会、总结)
repeat int 重复周期(0:不重复、1:每工作日、2:每日、3:每周、4:每两周、5:每月)
repeatEndDate long 重复截止时间
{
    "openid": "5a67e08d00b0e8dfe4aab4fa",
    "title": "测试会议",
    "content": "批量修改重复日程接口",
    "startDate": 1530002768912,
    "endDate": 1530687800000,
    "noticeTime": 0,
    "topState": 0,
    "actors": ["xxxxxx","xxxxxx"],
    "submitExperience": true,
    "repeat": 1,
    "repeatEndDate": 1530687800000
}

返回结果示例:

meetingIds为添加成功后的会议id集合,其中第一个是父会议ID

{
    "data": {
        "meetingIds": ["5b614fe80e4f78209cb99689", "5b61504e0e4f78209cb99690", "5b61504e0e4f78209cb9968f"]
    },
    "error": null,
    "errorCode": 0,
    "success": true
}

1.5. 5、批量修改重复日程接口

http://yunzhijia.com/gateway/cloudwork/meeting/batchModify?accessToken=xxxx

header:

Content-Type:application/json

参数:

参数 类型 注释
id String 会议ID
openid String 会议创建者的oid
title String 会议标题
content String 会议内容
startDate Long 会议开始时间戳
endDate Long 会议结束时间戳
noticeTime int 提醒时间(-1:不提醒、0:开始时间提醒、15:开始时间前15分钟提醒、60:开始时间前1小时提醒)
topState int 是否标记为重要(0:否、1:是)
actors 集合 协作人oid的集合(即原来的actors加上addActors减去delActors)
addActors 集合 新加的协作人oid集合
delActors 集合 删除的协作人oid集合
submitExperience boolean 是否需要提交会议纪要(新的体会、总结)
repeat int 重复周期(0:不重复、1:每工作日、2:每日、3:每周、4:每两周、5:每月)
repeatEndDate long 重复截止时间
batchId String 批量ID(如果是父会议,则没有批量ID,可以不传)

如何判断batchId是不是父会议ID? 调用上面创建重复会议的接口,返回的meetingIds集合的第一个id即为父会议ID

{
    "id": "5b33262e14cada62e4e44822",
    "openid": "5a67e08d00b0e8dfe4aab4fa",
    "title": "测试会议",
    "content": "在京举行还很好",
    "startDate": 1530002768912,
    "endDate": 1530687800000,
    "noticeTime": 0,
    "topState": 0,
    "actors": ["xxxxxx","xxxxxx"],
    "addActors": ["xxxxxx","xxxxxx"],
    "delActors": ["xxxxxx","xxxxxx"],
    "submitExperience": true,
    "repeat": "1",
    "repeatEndDate": 1533549600000,
    "batchId": "5b6986c514cada6af0f03821"
}

返回结果示例:

{
    "success": true,
    "errorCode": 0,
    "error": null,
    "data":null
}

1.6. 6、批量取消重复日程接口

http://yunzhijia.com/gateway/cloudwork/meeting/batchCancel?accessToken=xxxx

header:

Content-Type:application/json

参数:

参数 类型 注释
id String 会议ID
openid String 会议创建者的oid
batchId String 批量ID(如果是父会议,则没有批量ID,可以不传)

PS:必须是创建人创建的会议,才可以取消 如何判断batchId是不是父会议ID? 调用上面创建重复会议的接口,返回的meetingIds集合的第一个id即为父会议ID

{
    "id": "1234567890",
    "openid": "5a67e08d00b0e8dfe4aab4fa",
    "batchId": "1234567890"
}

返回结果示例:

{
    "success": true,
    "errorCode": 0,
    "error": null,
    "data":null
}

1.7. 7、按天查询工作圈下会议

http://yunzhijia.com/gateway/cloudwork/meeting/queryByDay?accessToken=xxxx

header:

Content-Type:application/json

参数:

参数 类型 注释
day long 待查询的日期时间戳
{
    "day": 1533549600000 //时间戳
}

返回结果示例:

参数 类型 注释
openid String 会议创建者的oid
type String 会议类型(null:普通会议、sign:线下签到类会议、voice:语音类会议)
title String 会议标题
content String 会议内容
meetingPlace String 会议地址
meetingStatus int 会议状态(0:未完成、1:完成、2:删除)
readStatus int 是否已读(0:未读、1:已读)
acceptStatus int 接受状态(0:未响应、1:不接受、2:接受)
personName String 创建者姓名
doneTime long 完成时间戳
id String 会议ID
noticeTime int 提醒时间(-1:不提醒、0:开始时间提醒、15:开始时间前15分钟提醒、60:开始时间前1小时提醒)
startDate Long 会议开始时间戳
endDate Long 会议结束时间戳
createDate long 会议创建时间
roomId String 会议室ID
roomOrderId String 会议室订单ID
{
    "success": true,
    "errorCode": 0,
    "error": null,
    "data": [
        {
            "openid": "5a67e1e1e4b02f1de22a70a3",
            "type": "sign",
            "title": "测试会议",
            "content": "在京举行还很好",
            "meetingPlace":"云8会议室",
            "meetingStatus":1,
            "readStatus":1,
            "acceptStatus":2,
            "personName": "张三",
            "doneTime": 1535569199741,
            "id": "5b86ed2fbeb7cc35af769eb8",
            "noticeTime": 0,
            "startDate": 1535558400000,
            "endDate": 1535644799999,
            "createDate": 1535569199741,
            "roomId":"xx",// 会议室ID
            "roomOrderId":""// 会议订单ID
        }
    ]
}

results matching ""

    No results matching ""