Access Guide
For information about the compliance workflow, see INTL Compliance.
Quick Start
Step 1: Import SDK
caution
During the joint debugging phase, you can import the SDK joint debugging version package, which is only used for integration testing.When the project goes live, import the SDK official version package.
Currently supports both npm package method and CDN method.
- npm
- CDN
$ npm install @intlsdk/compliance-api
// SDK Debugging Package
<script src="https://test-common-web.intlgame.com/sdk-cdn/compliance-api/index.umd.js"></script>
// SDK Official Package
<script src="https://common-web.intlgame.com/sdk-cdn/compliance-api/index.umd.js"></script>
Step 2: Use SDK
caution
During integration testing, set env to the test environment https://test.intlgame.com; when launching the game, set env to the corresponding production environment.
const complianceApi = new IntlgameComplianceApi({
env: "test",
});
| Parameters | Type | Description | Notes |
|---|---|---|---|
| env | string | SDK environment For more information, see Obtain Deployment Cluster Information. | Required |
API
For more information on the API for Parental Certification for Minors, see:
| API | Function definition |
|---|---|
| setUserProfile | Set user login status information and configuration information |
| queryUserStatus | Query minor user information |
| setParentCertificateStatus | User sets parental certification status |
| setAdulthood | Set whether the user is an adult |
| commitBirthday | Submit user birthdate |
| sendEmail | Send parental certification email |
| setEUAgreeStatus | Set whether EU region players agree to transfer user data outside the EU region. |
| queryIsEEA | Query EEA countries |