Integration Guide
Quick Start Guide
Step 1: Install the SDK
Install the SDK from npm or CDN.
- npm
- CDN
$ npm install @intlsdk/dsr-api
// SDK production version package
<script src="https://common-web.intlgame.com/sdk-cdn/dsr-api/index.umd.js"></script>
Step 2: Instantiate SDK
const dsrApi = new IntlgameDSRApi({
env: "test",
channelID: 52,
gameID: 11,
accountPlatType: 52,
appID: "",
});
| Parameter | Type | Description | Remark |
|---|---|---|---|
| env | string | SDK environment For more information, see Retrieve cluster information | Required |
| channelID | number | Channel ID of supported third-party channels For more information, see Login Channel and ChannelID Relationship If logged in with a custom account, use accountPlatType | Required for third-party channels |
| appID | string | App ID ACCOUNT_APP_ID assigned by Player Network Console | Optional |
| accountPlatType | number | Platform type (channel ID) of the custom account ACCOUNT_PLAT_TYPE assigned by Player Network Console | Required for custom account |
| gameID | number | Player Network unique game ID | Required |
API
For more information on the account deletion APIs, see:
| API | Function |
|---|---|
| queryDeleteStatus | Queries account deletion status |
| cancelDeleteAccount | Cancels account deletion |