Updated on 2024-07-30 GMT+08:00
Service Integration
The file for calling the HWMSDK API must contain the following content:
1
|
#import <HWMUISDK/HWMUISDK.h>
|
SDK initialization API must be called in the main thread.
1 2 3 4 5 6 7 8 |
- (void)initSDK { HWMOpenSDKConfig *config = [[HWMOpenSDKConfig alloc] init]; config.appId = getAppId();// In app ID login scenario, transfer the applied enterprise app ID. In non-app ID login scenario, you are advised to transfer the app name. BOOL result = [HWMSdk initWithConfig:config]; if (result) { [UIUtil showMessage:@"Initialization succeeded." vc:self]; } } |
Examples
- Login API
1
[[HWMSdk getOpenApi] login:account password:password callback:^(NSError * _Nullable error, HWMLoginResult * _Nullable result){ }];
- API for creating a meeting
1
[[HWMSdk getOpenApi] createConf:param callback:^(NSError * _Nullable error, HWMCreateConfResult * _Nullable result) { }];
- API for joining a meeting
1
[[HWMSdk getOpenApi] joinConf:param callback:^(NSError * _Nullable error, id _Nullable result) { }];
- API for scheduling a meeting
1
[[HWMBizSdk getBizOpenApi] bookConf:param callback:^(NSError *_Nullable error, id _Nullable result) { }];
- API for editing a meeting
1
[[HWMBizSdk getBizOpenApi] editConf:param callback:^(NSError *_Nullable error, id _Nullable result) { }];
- Logout API
1
[[HWMSdk getOpenApi] logout:^(NSError * _Nullable error, id _Nullable result) { }];
After the code of the preceding APIs is configured, SDK integration will be completed. For more information, see the HWMUISDKNativeDemo sample code.
Parent topic: Quick Start
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot