Skip to main content

QueryUserNameStatus

The queryUserNameStatus API is used to check if the username is already registered for an LI PASS.

Request Parameter

ParameterTypeDescriptionRemark
user_namestringUnique username used for loginRequired

Request Sample

accountApi.queryUserNameStatus(
{
user_name:'xxx',
}
).then((res) => {
console.log(res);
});

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success
!=0: Request failure, see msg for detailed return message
msgstringReturn message
seqstringSequence number of the message in the data stream
username_availablestringUsername availability
0: Not available
1: Available

Response Sample

{
msg: "Success",
ret: 0,
seq: "1638239867-0180225865-009373-0000002944",
username_available: 1,
}