Player Network Account Login (intlSignIn)
The intlSignIn API allows players to log into Player Network via LI PASS.
Request parameters
| Parameters | Type | Description | Note |
|---|---|---|---|
| token | string | LI PASS user auth token | Required |
| openid | string | UID for LI PASS | Required |
| account_plat_type | number | Account platform type, identifying different account platforms LI PASS should always be entered as 131 | Required |
| account | string | User account as email | Required |
Request sample
accountApi.intlSignIn(
{
token: 'xxx',
openid: 'xxx',
account_plat_type: 131,
account: 'xxx@gmail.com',
}
).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 |
| token | string | User token generated by Player Network SDK length:40 bytes, see Token for details |
| openid | string | Unique identifier for Player Network SDK user Defaults to a 64-bit unsigned integer string, also supports 32-bit |
| token_expire_time | int64 | Token expiration time Unix time |
| user_name | string | Username for login |
| birthday | string | User Birthday YYYY-MM |
| channel_info | object | Channel information of the current channel. For more information, see Channel Information. |
| del_account_status | number | Account Cancellation -1: Query failed 0: No record of revoked Player Network account cancellation request (including email and phone accounts) 1: Waiting period for deletion 2: Account cancellation completed 3: Cancel account 4: Account cancellation failed |
| seq | string | Sequence number for data stream message |
| first_login | number | Is this the first login? Unknown: -1 No: 0 Yes: 1 |
| gender | number | Gender 0: Undefined 1: Male 2: Female |
| need_name_auth | bool | Is real name authentication needed |
| pf | string | pf value for Midas payment |
| pf_key | string | pf key for Midas payment |
| picture_url | string | Profile picture URL |
| token | string | User token generated by Player Network SDK Length: 40 bytes |
| token_expire_time | number | Token expiration timestamp e.g., 1600844518 |
| uid | string | UID of LI PASS |
Response sample
{
birthday: "2000-01",
channel_info:{
account_plat_type: 52,
expire_ts: 1638494026,
openid: "yyy",
token: "yyy"
},
del_account_status: 0,
first_login: 0,
gender: 0,
msg: "success",
need_name_auth: false,
openid: "xxx",
pf: "INTLProject_INTLProject-00000000-web-00000000-INTLProject-xxxxxxxxxxxxxxxxxxxxxxxxxxx-13635546925269953152",
pf_key: "7682184xxxxxxxxxxxxxxxxxxxxxxefc8b45",
picture_url: "",
ret: 0,
seq: "1638194026-0180225310-032531-0000292460",
token: "xxx",
token_expire_time: 1638494026,
uid: "xxxx",
user_name: "user",
}