Skip to main content

Access Guide

Quick Start

Step 1: Import SDK

caution

During the project tuning phase, you can import the SDK debug version package, which is only used for integration testing.When the project goes online, the official version package of the SDK must be imported.

Currently, both npm package and CDN methods are supported.

$ npm install @intlsdk/account-api

Step 2: Use the SDK

caution

During integration testing, set env to test environment https://test.intlgame.com; when launching the game, set env to the corresponding official environment.

Different functions have different parameters.

const accountApi = new IntlgameAccountApi({
env: "test", // environment where the SDK operates
langType: "en", // language
appID: "", // self-built account app ID
accountPlatType: 52, // self-built account platform ID
gameID: 11,
});
ParametersTypeExplanationRemarks
envstringSDK Environment
For more information, see Retrieve Deployment Cluster Information.
Required
langTypeStringLanguage type
For more information, you can check Language Type Definition-Self-Built Account
Required
appIDstringApp ID
ACCOUNT_APP_ID assigned by the Player Network Console.
Mandatory
accountPlatTypenumberSelf-built account platform type, used to identify different account platforms
ACCOUNT_PLAT_TYPE assigned by the Player Network Console.
Required
gameIDnumberPlayer Network Game Unique IDRequired
const accountApi = new IntlgameAccountApi({
env: "test", //environment where the SDK runs, see "env description" below
gameID: 11,
});
ParameterstypologyExplanationNotes
envStringSDK Environment
For more information, see Retrieve Deployment Cluster Information.
Required
gameIDnumberPlayer Network Game Unique IDMandatory

API

For more information on LBS API, see:

APIFunction Definition
queryMyRegionGet country and region information based on IP