Integration Guide
For the compliance workflow, see Player Network SDK Compliance.
Quick Start Guide
Step 1: Install the SDK
Install the SDK from npm or CDN.
- npm
- CDN
$ npm install @intlsdk/compliance-api
// SDK production version package
<script src="https://common-web.intlgame.com/sdk-cdn/compliance-api/index.umd.js"></script>
Step 2: Instantiate SDK
caution
Set env to the test environment https://test.intlgame.com during the integration testing; set env to the corresponding production environment when launching the game.
const complianceApi = new IntlgameComplianceApi({
env: "test",
});
| Parameter | Type | Description | Remark |
|---|---|---|---|
| env | string | SDK environment For more information, see Retrieve cluster information. | Required |
API
For more information on the compliance APIs, see:
| API | Function |
|---|---|
| setUserProfile | Sets user login information and configuration information |
| queryUserStatus | Queries user adult status |
| setParentCertificateStatus | Sets parental authorization status |
| setAdulthood | Sets user's adulthood |
| commitBirthday | Submits user's birthday |
| sendEmail | Sends parental authorization email |
| setEUAgreeStatus | Sets whether players in the EU region consent to transfer their user data to non-EU regions. |
| queryIsEEA | Queries whether players are currently in EEA |