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
| Parameters | Type | Description | Note |
|---|---|---|---|
| third_type | string | Third-party channel types: apple discord epic fbInstantGame garena line ps5 steam twitch vk xbox | Required |
| channel_info | object | Channel 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
| 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 | Player Network SDK token expiration time Unix time |
| user_name | string | Username for login |
| birthday | string | User's birthday |
| channel_info | object | Channel information for login For more information, see Channel Info |
| del_account_status | number | Account 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 |
| seq | string | Sequence 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",
}