Help Center>
Meeting>
Client SDK Reference>
iOS SDK>
Typical Scenarios>
Scenario 2: Login>
Login Using an App ID
Updated on 2023-03-23 GMT+08:00
Login Using an App ID
Description
The login API can be used for login using an app ID.
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.
- Call the API.
- Obtain the login account, expiration time, random number, username, and encrypted signature from the server.
- 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 14 15 16 |
/// App ID login API - (void)login { HWMAppIDLoginParam *appidInfo = [[HWMAppIDLoginParam alloc] init]; appidInfo.thirdUserId = @"test"; appidInfo.expireTime = 1599618620; appidInfo.nonce = @"nonce"; appidInfo.userName = @"Test account" appidInfo.signature = @"signature"; [[HWMSdk getOpenApi] login:appidInfo callback:^(NSError * _Nullable error, HWMLoginResult * _Nullable result) { if (error == nil) { NSLog(@"Login succeeded."); }else{ NSLog(@"Login failed."); } }]; } |
Parent topic: Scenario 2: Login
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