编辑会议
modifyConf
接口描述
该接口用于编辑未开始的预约会议。
注意事项
- 会议未开始前且自己是主持人才可以调用接口。
- 预约会议中携带的与会者在编辑会议时需要传入userUuid(会议详情中每个与会者带有该参数)。
- 推荐所有字段均填,编辑修改的字段可来源于用户输入,其他不想修改的属性通过会议详情参数获取。
方法定义
1 | modifyConf(modifyConfParam: HWMOpenModifyConfParamModel): Promise<HWMCommonResult>; |
参数描述
| 参数 | 是否必须 | 类型 | 描述 |
|---|---|---|---|
| modifyConfParam | 是 | 编辑会议参数。 |
| 参数 | 是否必须 | 类型 | 描述 |
|---|---|---|---|
| confId | 是 | string | 会议ID。 |
| startTimeStamp | 是 | number | 会议开始时间,UTC时间戳,精度秒。 |
| confLen | 是 | number | 会议时长,单位分钟,最小值15分钟,最大值1440分钟。 |
| confCommonParam | 是 | 会议基本信息。 | |
| isSendCalendarNotify | 是 | boolean | 发送邮件日历开关。 |
| allowGuestStartConf | 否 | boolean | 是否允许来宾提前启动会议。 说明:
|
| allowGuestStartConfTime | 否 | number | 允许来宾提前入会时间范围(单位:分钟): 0 - 随时 x - 提前x分钟启动会议 说明:
|
| openCustomPara | 否 | string | 自定义扩展信息。 |
返回值
| 参数 | 类型 | 描述 |
|---|---|---|
| result | SDKERR | 接口调用结果,HWM_SDKERR_SUCCESS表示成功,详细请参考错误码参考。 |
| reasonDesc | string | 错误描述。 |
示例代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /** * 编辑会议 */ handleModifyConf() { const attendees: Array<HWMOpenAttendeeBaseInfoModel> = [{ number: this.getNumber(), name: this.getName(), accountId: this.getAccountId(), isSelf: this.isSelf, thirdAccount: this.getThirdAccount(), userUuid: this.getUserUuid() }]; const modifyConfParam: HWMOpenModifyConfParamModel = { confId: this.confId, startTime: this.confDetailInfo.baseInfo.startTime, confLen: this.confDetailInfo.durationMinutes, allowGuestStartConf: this.confDetailInfo.allowGuestStartConf, allowGuestStartConfTime: this.confDetailInfo.allowGuestStartConfTime, isSendCalendarNotify: this.confDetailInfo.isEmailCalenderOn, confCommonParam: { vmrId: this.confDetailInfo.vmrId, vmrIdType: this.confDetailInfo.vmrIdType, attendees: attendees, subject: this.subject, confAllowJoinUser: this.confAllowJoinUser, autoMuteMode: this.confDetailInfo.baseInfo.autoMuteMode, hardTerminalAutoMuteMode: this.confDetailInfo.baseInfo.hardTerminalAutoMuteMode, isSendSms: this.confDetailInfo.isSmsOn, confMediaType: this.confDetailInfo.baseInfo.mediaType, recordMode: this.confDetailInfo.recordMode, supportWatermark: this.isWatermarkOn, guestPwd: this.guestPwd, isGuestJoinConfWithoutPwd: StringUtils.isEmpty(this.guestPwd), } } UISDK.getConfMgrApi().modifyConf(modifyConfParam).then((res: HWMCommonResult) => { const message: string = res.result === SDKERR.HWM_SDKERR_SUCCESS ? '编辑会议成功' : '编辑会议失败' + res.result; console.log(message); }) } |