Skip to main content

ComplianceInitWithParams

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ComplianceInitWithParams for Unreal Engine SDK.

Set user login state and configuration information.

Function definition

public static bool ComplianceInitWithParams(string gameID, string openID, string token, int channelID, string langType, string extraJson)

Input parameters

NameTypeDescription
gameIDstringGame ID in the configuration file
openIDstringOpenID obtained from AuthResult
tokenstringToken obtained from AuthResult
channelIDintChannelID obtained from AuthResult
langTypestringLanguage used when sending emails and text messages
Follows RFC 4646 format, such as en for English, see Language Type Definition for details
extraJsonstringCompliance result containing minor authentication status, obtained from AuthResult as JSON string get_status_rsp

Return value

  • Returns true if user profile is valid
  • Returns false if user profile is invalid

Code sample

string gameID = "11";
string openID = "123456789";
string token = "qwer123rtyyt597";
int channelID = 0;
string langType = "en";
string extraJson = AuthResult.ExtraJson["get_status_rsp"];

bool succ = INTLAPI.ComplianceInitWithParams(gameID, openID, token, channelID, langType, extraJson);