QueryUserNameStatus
The queryUserNameStatus
API is used to check if the username is already registered for an LI PASS.
Request Parameter
Parameter | Type | Description | Remark |
---|---|---|---|
user_name | string | Unique username used for login | Required |
Request Sample
accountApi.queryUserNameStatus(
{
user_name:'xxx',
}
).then((res) => {
console.log(res);
});
Response Parameter
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success !=0: Request failure, see msg for detailed return message |
msg | string | Return message |
seq | string | Sequence number of the message in the data stream |
username_available | string | Username availability 0: Not available 1: Available |
Response Sample
{
msg: "Success",
ret: 0,
seq: "1638239867-0180225865-009373-0000002944",
username_available: 1,
}