Skip to main content

Player Network Account Login (intlSignIn)

The intlSignIn API allows players to log into Player Network via LI PASS.

Request parameters​

ParametersTypeDescriptionNote
tokenstringLI PASS user auth tokenRequired
openidstringUID for LI PASSRequired
account_plat_typenumberAccount platform type, identifying different account platforms
LI PASS should always be entered as 131
Required
accountstringUser account as emailRequired

Request sample​

accountApi.intlSignIn(
{
token: 'xxx',
openid: 'xxx',
account_plat_type: 131,
account: 'xxx@gmail.com',
}
).then((res) => {
console.log(res);
});

Response parameters​

ParametersTypeDescription
retnumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
tokenstringUser token generated by Player Network SDK
length: 40 bytes, see Token for details
openidstringPlayer Network SDK unique user identifier
Defaults to a 64-bit unsigned integer string, but can also support 32-bit.
token_expire_timeint64Token expiration time
Unix time
user_namestringUsername for login
birthdaystringUser Birthday
YYYY-MM
channel_infoobjectChannel information of the current channel.
For more information, see Channel Information.
del_account_statusnumberAccount 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
seqstringData Stream Message Serial Number
first_loginnumberIs this the first login?
Unknown: -1
No: 0
Yes: 1
gendernumberGender
0: Undefined
1: Male
2: Female
need_name_authboolIs real name authentication needed
pfstringpf value for Midas payment
pf_keystringpf key for Midas payment
picture_urlstringProfile picture URL
tokenstringUser token generated by Player Network SDK
Length: 40 bytes
token_expire_timenumberToken expiration timestamp
e.g., 1600844518
uidstringUID for 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",
}