Skip to main content

Set User Profile (ComplianceSetUserProfile, V1.16 Deprecated)

AndroidiOSPC

If you are using Unreal Engine, see ComplianceSetUserProfile in the Unreal Engine SDK.

Set user login information and configuration, supporting iTOP/MSDKV5/Player Network SDK accounts.

Function definition​

public static bool ComplianceSetUserProfile(string gameID, string openID, string token, int channelID, string region);

Input Parameters​

caution

The user's country or region code must strictly adhere to the ISO 3166-1 standard.For example, when filling in Afghanistan, it must be written as 004 instead of 4.

NameTypeExplanation
gameIDstringGame ID configuration for iTOP/MSDKV5/Player Network SDK, available in the configuration file.
openIDstringOpenID of iTOP/MSDK/Player Network SDK, obtainable from loginresult or authresult.
tokenstringToken of iTOP/MSDK/Player Network SDK, obtainable from loginresult or authresult.
channelIDintChannelID of iTOP/MSDK/Player Network SDK, obtainable from loginresult or authresult.
regionstringISO 3166-1 Numeric code for a country or region
For example, 156 represents China, and 040 represents Austria

Return values​

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

Code Sample​

bool succ = INTLAPI.ComplianceSetUserProfile(gameID, openID, token, channelID, region);