Skip to main content

Access Overview

Supported Channels​

Quick Start​

Step 1: Import SDK​

caution

During project integration testing, import the debugging SDK package, which is intended only for integration testing.For project launch, the official SDK package must be imported.

Currently supports both npm package and CDN methods.

$ npm install @intlsdk/account-api

Step 2: Use SDK​

caution

When in integration testing, set env to the testing environment https://test.intlgame.com; set env to the appropriate live environment when launching the game.

Different functions use different parameters.

About Self-built Accounts​

const accountApi = new IntlgameAccountApi({
env: "test", // Environment in which the SDK runs
langType: "en", // Language
appID: "", // Self-built account appid
accountPlatType: 52, // Platform ID for self-built accounts
gameID: 11,
});
ParameterTypeDescriptionRemark
envstringSDK environment
For more information, see Get deployment cluster information
Required
langTypestringLanguage type
For more information, see Language Type Definition - Custom Account
Required
appIDstringApp ID
ACCOUNT_APP_ID assigned by the Player Network Console
Required
accountPlatTypenumberSelf-built account platform type, used to identify different account platforms
ACCOUNT_PLAT_TYPE assigned by the Player Network Console
Required
gameIDnumberPlayer Network unique game IDRequired

About Third-party Channels​

const accountApi = new IntlgameAccountApi({
env: "test", // Environment in which the SDK runs, see "env Description" below
gameID: 11,
});
ParameterTypeDescriptionRemark
envstringSDK environment
For more information, see Get deployment cluster information
Required
gameIDnumberPlayer Network unique game IDRequired

API​

For more information on the Friend API, see:

APIFunction definition
ShareShare