Updated on 2023-03-23 GMT+08:00

Login Using an Account and Password

Description

The login API can be used for login using an account and password. APIs such as CreateConf can be called only when you have logged in. To use complete meeting functions, log in to the Huawei Cloud Meeting server first.

If you have not logged in, you can join only the meetings that have been created.

Service Process

If you need to log in using the SDK, call the login API and then implement the callback.

  1. Call the API.

    1. Obtain the account and password for login.
    2. Call the login API to log in. The data in the preceding step is used as input parameters.

  2. Implement the callback.

    Implement the callback.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
/// Login
- (void)login {
    NSString *account = @"439571854984";
    NSString *password = @"Change_Me";
    [[HWMSdk getOpenApi] login:account password:password callback:^(NSError * _Nullable error, HWMLoginResult * _Nullable result) {
        if (error == nil) {
            NSLog(@"Login succeeded.");
        }else{
            NSLog(@"Login failed.");
        }
    }];
}