Skip to main content

Player Network Account Authorization (intlAuthorize)

The intlAuthorize API is used to authorize login to a Player Network account through third-party channel authorization information.

Request parameters

ParametersTypeDescriptionNote
third_typestringThird-party channel types:
apple
discord
epic
facebook
fbInstantGame
garena
google
line
ps5
steam
twitch
twitter
vk
xbox
Required
channel_infoobjectChannel information for login
For more information, see Channel Info
Required

Request sample

accountApi.intlAuthorize({
third_type: 'facebook',
channel_info: {
access_token: "EAAI2lTrXAZBwBAC"
}
}).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
openidstringUnique identifier for Player Network SDK user
Defaults to a 64-bit unsigned integer string, also supports 32-bit
token_expire_timeint64Player Network SDK token expiration time
Unix time
user_namestringUsername for login
birthdaystringUser's birthday
channel_infoobjectChannel information for login
For more information, see Channel Info
del_account_statusnumberAccount deletion status
-1: Query failed
0: No account deletion records or number deletion (email or mobile account)
1: Silent period before account deletion
2: Account successfully deleted
3: Account deletion in progress
4: Account deletion failed
seqstringSequence number for data stream message

Response sample

{
birthday: "",
channel_info: {
access_token: "xxxxx",
expire_ts: 1641527900,
}
first_login: 0,
gender: 0,
msg: "success",
need_name_auth: false,
openid: "xxxx",
pf: "facebook_fb-00000000-web-00000000-fb-xxxxxxxxxxxxxxxx-419213088809929925",
pf_key: "6cc9bxxxxxxxxxxxxxxxxxx826",
picture_url: "https://www.google.com/Images/profileA.png",
ret: 0,
seq: "1638935899-1006943754-018668-0000656615",
token: "xxx",
token_expire_time: 1641527900,
del_account_status: 0,
uid: "xxxx",
user_name: "user",
}