Login Using an Account and Password
Description
This API is used to log in to the system using an account. 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 only join created meetings.
Service Process
If you need to log in using the SDK, call the login API and then implement the callback.
- Call the API.
- Obtain the account and password for login.
- Call the login API to log in. The data in the preceding step is used as input parameters.
- Implement the callback.
Implement the callback.
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 |
/// Login /// It is recommended that accounts and passwords used for authentication be stored in ciphertext in the configuration file or as environment variables and be decrypted during usage. - (void)login { NSString *account = getAccount(); NSString *password = getPassword(); [[HWMSdk getOpenApi] login:account password:password callback:^(NSError * _Nullable error, HWMLoginResult * _Nullable result) { if (error == nil) { NSLog(@"Login succeeded."); }else{ NSLog(@"Login failed."); } }]; } |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot