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
- CDN
$ npm install @intlsdk/dsr-api
//SDK package from the test environment
<script src="https://test-common-web.intlgame.com/sdk-cdn/dsr-api/index.umd.js"></script>
//SDK package from the production environment
<script src="https://common-web.intlgame.com/sdk-cdn/dsr-api/index.umd.js"></script>
Step 2: Use the SDK
const dsrApi = new IntlgameDSRApi({
env: "test",
channelID: 52,
gameID: 11,
accountPlatType: 52,
appID: "",
});
| Parameters | Type | Explanation | Note |
|---|---|---|---|
| env | string | SDK environment For more information, see Obtain Deployment Cluster Information | Required |
| channelID | number | Supported third-party channel IDs For more information, see Login Channel and Channel ID Relationship If logging in with a self-built account, use accountPlatType | Mandatory for third-party channels |
| appID | string | App ID ACCOUNT_APP_ID assigned by Player Network Console | Optional |
| accountPlatType | number | Self-built account platform type (channel ID) ACCOUNT_PLAT_TYPE assigned by Player Network Console | Mandatory for self-built accounts |
| gameID | number | Player Network Game Unique Identifier ID | Mandatory |
API
For more information on the account cancellation API, see:
| API | Function Definition |
|---|---|
| queryDeleteStatus | Query Account Status |
| cancelDeleteAccount | Cancel Account Deletion |