Skip to main content

Query User Information (QueryUserInfo)

The queryUserInfo API is used to obtain LI PASS user information.This API only returns LI PASS channel information and does not return game information.

Request parameters

ParametersTypeDescriptionNote
uidstringUID of LI PASSRequired
tokenstringLI PASS user authorization tokenRequired

Request sample

accountApi.queryUserInfo(
{
uid:'xxx',
token:'xxx',
}
).then((res) => {
console.log(res);
});

Response parameters

ParametersTypeDescription
retnumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
account_typenumberAccount type
1: Email
2: Phone number (currently not supported)
birthdaystringUser birthday
YYYY-MM
emailstringEmail address
expireint64Token Expiration Time
Unix Time
is_receive_emailnumberEmail push status
1: Push
Other: Do not push
lang_typestringLanguage type
For details, see Language Type Definition
nick_namestringUser's display nickname, can be duplicated
privacy_policystringUser privacy policy version
privacy_update_timeint64User privacy policy update time
regionstringNumeric codes of countries or regions as per ISO 3166-1
For example, 156 represents China, and 040 represents Austria.
terms_of_servicestringUser terms of service version
terms_update_timeint64User terms of service update time
uidstringUID of LI PASS
user_namestringUsername used for login
seqstringMessage sequence of the data stream
phonestringPhone number
phone_area_codestringPhone area code

Response sample

{
account_type: 1,
birthday: "2000-01",
email: "user@email.com",
expire: 1638494026,
is_receive_email: 0,
lang_type: "en",
msg: "Success",
nick_name: "nick",
phone: "",
phone_area_code: "",
privacy_policy: "1",
privacy_update_time: 1638196548,
region: "156",
ret: 0,
seq: "1638194050-0180225865-002725-0000292413",
terms_of_service: "1",
terms_update_time: 1638196548,
uid: "xxx",
user_name: "username",
username_pass_verify: 1,
}