Updated on 2024-07-30 GMT+08:00

Editing a Recurring Meeting Series

editCycleConf

API Description

This API is used to edit a recurring meeting series.

Precautions

  1. Call this API after login.
  2. All fields are mandatory. Specify the fields to be edited as required, and assign values in the meeting details to remaining fields.

Method Definition

1
- (void)editCycleConf:(HWMOrderCycleConfParam *_Nonnull)param callback:(_Nonnull HWMSDKCompleteHandler)callback

Parameter Description

Table 1 HWMOrderCycleConfParam parameter description

Parameter

Mandatory

Type

Description

orderConfParam

Yes

HWMOrderConfParam

Common meeting parameters.

cycleParam

Yes

HWMSDKCycleConfParamModel

Recurring meeting series parameters.

Sample Code

 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
/// Edit a recurring meeting series.
- (void)editCycleConf{
    HWMOrderCycleConfParam * cycleConfParam = [[HWMOrderCycleConfParam alloc] init];
    cycleConfParam.orderConfParam.confSubject = @"My Scheduled Meeting";
    cycleConfParam.orderConfParam.confType = OrderConfTypeVideo;
    cycleConfParam.orderConfParam.isNeedConfPwd = YES;
    cycleConfParam.orderConfParam.isAutoRecord = YES;
    cycleConfParam.orderConfParam.isRecordOn = YES;
    cycleConfParam.orderConfParam.startTime = 1633017600; // UTC timestamp, in seconds. If the obtained time is the local time, the time needs to be converted to the UTC time.
    cycleConfParam.orderConfParam.duration = 30; // Meeting duration, in minutes
    cycleConfParam.orderConfParam.timeZone = 56;
    cycleConfParam.orderConfParam.callInRestrictionType = HWMJoinConfRestrictionAll;
    HWMAttendeeInfo * attendeeInfo = [[HWMAttendeeInfo alloc] init];
    attendeeInfo.name = @"Mike";
    attendeeInfo.number = @"+991116003543";
    attendeeInfo.isMute = YES;
    cycleConfParam.orderConfParam.attendee = @[attendeeInfo];
    
    HWMSDKCycleConfParamModel * cycleConfParamModel = [[HWMSDKCycleConfParamModel alloc] init];
    cycleConfParamModel.startDate = 1633017600; // UTC timestamp, in seconds. If the obtained time is the local time, the time needs to be converted to the UTC time.
    cycleConfParamModel.endDate = 1636560000;
    cycleConfParamModel.cycleType = HWMSDKCycleTypeWeek;
    cycleConfParamModel.preRemindDays = 1;
    cycleConfParam.cycleParam = cycleConfParamModel;
    
    [[HWMBizSdk getBizOpenApi] editCycleConf:cycleConfParam callback:^(NSError * _Nullable error, id  _Nullable result) {
        if (!error) {
            NSLog(@"book cycle conf success");
            [UIUtil showMessage:@"Recurring meeting series edited."];
        }else{
            NSLog(@"book cycle conf fail errorCode : %zd",error.code);
            [UIUtil showMessage:[NSString stringWithFormat:@"Edit recurring meeting series failed:%zd %@", error.code, error.localizedDescription]];
        }
    }];
}