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
| Parameters | Type | Description | Note |
|---|---|---|---|
| uid | string | UID of LI PASS | Required |
| token | string | LI PASS user authorization token | Required |
Request sample
accountApi.queryUserInfo(
{
uid:'xxx',
token:'xxx',
}
).then((res) => {
console.log(res);
});
Response parameters
| Parameters | Type | Description |
|---|---|---|
| ret | number | Return code 0: Request successful !=0: Request failed, refer to msg for detailed results |
| msg | string | Result Explanation |
| account_type | number | Account type 1: Email 2: Phone number (currently not supported) |
| birthday | string | User birthday YYYY-MM |
| string | Email address | |
| expire | int64 | Token Expiration Time Unix Time |
| is_receive_email | number | Email push status 1: Push Other: Do not push |
| lang_type | string | Language type For details, see Language Type Definition |
| nick_name | string | User's display nickname, can be duplicated |
| privacy_policy | string | User privacy policy version |
| privacy_update_time | int64 | User privacy policy update time |
| region | string | Numeric codes of countries or regions as per ISO 3166-1 For example, 156 represents China, and 040 represents Austria. |
| terms_of_service | string | User terms of service version |
| terms_update_time | int64 | User terms of service update time |
| uid | string | UID of LI PASS |
| user_name | string | Username used for login |
| seq | string | Message sequence of the data stream |
| phone | string | Phone number |
| phone_area_code | string | Phone 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,
}