IntlAuthorize
The IntlAuthorize
API is used to authorize Player Network account login through the authorization information of the third-party channels.
Request Parameter
Parameter | Type | Description | Remark |
---|---|---|---|
third_type | string | Third-party channels: apple discord epic fbInstantGame garena line ps5 steam twitch vk xbox | Required |
channel_info | object | Channel information of the login channel For more information, see Channel Information | Required |
Request Sample
accountApi.IntlAuthorize({
third_type: 'facebook',
channel_info: {
access_token: "EAAI2lTrXAZBwBAC"
}
}).then(
(res) => {
console.log(res);
});
Response Parameter
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success, parse related returned field information. !=0: Request failure, check msg for the detailed return message. |
msg | string | Return message |
token | string | Player Network SDK user authorization token Length: 40 bytes, see Token |
openid | string | Player Network SDK unique user ID The default value is 64-bit unsigned integer string, 32-bit string is also supported. |
token_expire_time | int64 | Player Network SDK token expiration time Unix time |
user_name | string | Unique username used for login |
birthday | string | User birthday |
channel_info | object | Channel information of the login channel For more information, see Channel Information. |
del_account_status | number | Account deletion status -1: Query failed 0: No record of revoking any account (email and phone account) deletion request 1: Cooling-off period before deleting the account 2: Account deleted successfully 3: Deleting the account 4: Account deletion failed |
seq | string | Sequence number of the message in the data stream |
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",
}