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
- CDN
$ npm install @intlsdk/account-api
// SDK joint debugging version package
<script src="https://test-common-web.intlgame.com/sdk-cdn/account-api/latest/index.umd.js"></script>
// Official SDK version package
<script src="https://common-web.intlgame.com/sdk-cdn/account-api/latest/index.umd.js"></script>
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,
});
| Parameters | Type | Description | Notes |
|---|---|---|---|
| env | string | SDK environment For more information, see Get deployment cluster information | Required |
| langType | string | Language type For more information, see Language Type Definition - Custom Account | Required |
| appID | string | App ID ACCOUNT_APP_ID assigned by the Player Network Console | Required |
| accountPlatType | number | Self-built account platform type, used to identify different account platforms ACCOUNT_PLAT_TYPE assigned by the Player Network Console | Required |
| gameID | number | Unique ID of the Player Network game | Required |
About Third-party Channels
const accountApi = new IntlgameAccountApi({
env: "test", // Environment in which the SDK runs, see "env Description" below
gameID: 11,
});
| Parameters | Type | Description | Notes |
|---|---|---|---|
| env | string | SDK environment For more information, see Get deployment cluster information | Required |
| gameID | number | Unique ID of the Player Network game | Required |
API
For more information on the Friend API, see:
| API | Function Definition |
|---|---|
| Share | Share |