更新时间:2025-04-09 GMT+08:00
分享

预约周期会议

bookCycleConf

接口描述

该接口用于预约周期会议。

注意事项

  1. 该接口在已登录状态下才能调用。
  2. 会议开始时间必须晚于当前时间,会议时长应大于15分钟。
  3. 携带与会者入会的时候需要传入attendees。
  4. 周期会议最大跨度一年,会议数量不超过50,超过则只预约前50个会议。

方法定义

1
bookCycleConf(bookCycleConfParam: HWMOpenBookCycleConfParamModel): Promise<HWMBookCycleConfResult>;

参数描述

参数

是否必须

类型

描述

bookCycleConfParam

HWMOpenBookCycleConfParamModel

预约周期会议参数。

表1 HWMOpenBookCycleConfParamModel参数说明

参数

是否必须

类型

描述

bookConfParam

HWMOpenBookConfParamModel

预约会议参数

cycleParam

HWMOpenCycleConfParamModel

周期会议参数

表2 HWMOpenCycleConfParamModel参数说明

参数

是否必须

类型

描述

startTimeStamp

number

开始时间,UTC时间戳,精度秒。

endTimeStamp

number

结束时间,UTC时间戳,精度秒。

cycleType

CycleType

周期类型。

interval

number

周期区间 1、周期类型选择了按天,表示每几天召开一次,取值范围[1,15];2、周期类型选择了Week,表示每几周召开一次,取值范围[1,5];3、周期类型选择了Month,interval表示隔几月,取值范围[1,3]。

listPoints

string

周期内的会议召开点。仅当按周和月时有效。数据格式(中间用逗号隔开):1,3,5,7

preRemindDays

number

周期子会议提前通知天数。

表3 枚举CycleType说明

枚举值

描述

HWM_CYCLE_TYPE_DAY

以天为周期。

HWM_CYCLE_TYPE_WEEK

以周为周期。

HWM_CYCLE_TYPE_MONTH

以月为周期。

返回值

表4 HWMBookCycleConfResult参数说明

参数

类型

描述

result

SDKERR

接口调用结果,HWM_SDKERR_SUCCESS表示成功,详细请参考错误码参考

reasonDesc

string

错误描述。

bookConfResult

HWMCreateConfResultModel

预约会议结果信息。

示例代码

 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
41
42
43
44
45
46
47
48
/**
* 预约周期会议
*/
handleBookCycleConf(){
    const attendees: Array<HWMOpenAttendeeBaseInfoModel> = [{
      number: this.getNumber(),
      name: this.getName(),
      accountId: this.getAccountId(),
      isSelf: this.isSelf,
      thirdAccount: this.getThirdAccount(),
      userUuid: this.getUserUuid()
    }];
    const confCommonParam: HWMOpenConfCommonParamModel = {
      confMediaType: ConfMediaType.HWM_CONF_MEDIA_VIDEO,
      subject: this.getSubject(),
      attendees: attendees,
      recordMode: this.getRecordMode(),
      confAllowJoinUser: this.getConfAllowJoinUser(),
      supportWatermark: this.isWatermarkOn,
      isGuestJoinConfWithoutPwd: this.isGuestJoinConfWithoutPwd,
      guestPwd: this.getGuestPwd(),
      isSendEmail: this.isSendEmail
    }
    const bookConfParam: HWMOpenBookConfParamModel = {
      startTime: this.getStartTime(),
      confLen: this.getConfLen(),
      confCommonParam: confCommonParam,
      isSendCalendarNotify: this.isSendCalendarNotify,
      allowGuestStartConf: this.allowGuestStartConf,
      allowGuestStartConfTime: this.allowGuestStartConfTime
    }
    const cycleParam: HWMOpenCycleConfParamModel = {
      startDate: this.getStartDate(),
      endDate: this.getEndDate(),
      cycleType: this.getCycleType(),
      interval: this.getInterval(),
      listPoints: this.getListPoints(),
      preRemindDays: this.getPreRemindDays()
    }
    const bookCycleConfParam: HWMOpenBookCycleConfParamModel = {
      bookConfParam: bookConfParam,
      cycleParam: cycleParam
    }
    UISDK.getConfMgrApi().bookCycleConf(bookCycleConfParam).then((res: HWMBookCycleConfResult) => {
      const message: string = res.result === SDKERR.HWM_SDKERR_SUCCESS ? '预约周期会议成功' : '预约周期会议失败';
      console.log(message);
    });
}

相关文档