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

Account and Password Login

Function

This API is used to log in to the system using an account and password. You must log in to Huawei Cloud Meeting before using functions such as creating meetings and being invited into meetings. If you do not log in, you cannot experience complete meeting functions.

Function Prototype

loginByAccount(accountAuthInfo: AccountAuthInfo, onLoginResult?: (ret: SDKERR, reason: string, loginResult: LoginResult) => void): voidloginByAccount(accountAuthInfo: AccountAuthInfo, onLoginResult?: (ret: SDKERR, reason: string, loginResult: LoginResult) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
accountAuthInfo Y AccountAuthInfo Account and password authentication information.
onLoginResult Y (ret: SDKERR, reason: string, loginResult: LoginResult) => void Login callback.
Table 2 AccountAuthInfo
Parameter Mandatory Type Description
account Y string Login account.
password Y string Login password.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string, loginResult: LoginResult) => void

Table 3 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.
loginResult LoginResult Login result.
Table 4 LoginResult
Parameter Type Description
userUuid string UUID, which is the unique user ID allocated by the system.
account string Account.
thirdAccount string Third-party account.