Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ Typical Scenarios/ Scenario 7: Scheduling a Meeting
Updated on 2023-03-23 GMT+08:00

Scenario 7: Scheduling a Meeting

Description

The bookConf API can be used to schedule a meeting.

Service Process

If you need to schedule a meeting using the SDK, call the bookConf API and then implement the callback.

  1. Call the API.

    1. Call the bookConf API to schedule a meeting.

  2. Implement the callback.

    Implement the callback.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
/// Schedule a meeting.
- (void)bookConf {
    HWMOrderConfParam * param = [[HWMOrderConfParam alloc] init];
    param.confSubject = @"Meeting topic";
    param.startTime = 1598759580;
    param.duration = 15;
    param.isAutoRecord = NO;
    param.timeZone = 56;
    param.vmrId = @"";
    param.callInRestrictionType = HWMJoinConfRestrictionAll;
    [[HWMBizSdk getBizOpenApi] bookConf:param callback:^(NSError *_Nullable error, id _Nullable result) {
        if (error) {
            NSLog(@"Failed to schedule the meeting:%@", error.localizedDescription);
        } else {
            NSLog(@"Meeting scheduled.");
        }
    }];
}