Skip to main content

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 install @intlsdk/compliance-api

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",
});
ParameterTypeDescriptionRemark
envstringSDK environment
For more information, see Retrieve cluster information.
Required

API

For more information on the compliance APIs, see:

APIFunction
setUserProfileSets user login information and configuration information
queryUserStatusQueries user adult status
setParentCertificateStatusSets parental consent status
setAdulthoodSets user's adulthood
commitBirthdaySubmits user's birthday
sendEmailSends parental consent email
setEUAgreeStatusSets whether players in the EU region consent to transfer their user data to non-EU regions.
queryIsEEAQueries whether players are currently in EEA