Set User Properties (ComplianceInitWithParams)
Set user login status and configuration information.
Function Definition
public static bool ComplianceInitWithParams(string gameID, string openID, string token, int channelID, string langType, string extraJson)
Input Parameters
| Name | Type | Explanation |
|---|---|---|
| gameID | String | Game ID in the configuration file |
| openID | String | OpenID, obtained from AuthResult |
| token | String | Token, obtained from AuthResult |
| channelID | int | ChannelID, obtained from AuthResult |
| langType | String | The language for sending emails and SMS Type follows RFC 4646, for example, en represents English. See Language Type Definition |
| extraJson | String | Includes compliance status for minor verification status |
Return Value
- Returns
trueif the user profile configuration is valid - Returns
falseif the user profile configuration is invalid
Code example
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);