Skip to main content

ComplianceMultiSetStatusWithBirthday

AndroidiOSWindows
Available from: LI PASS V1.12
If you were looking for the method for use with Unreal Engine, see ComplianceMultiSetStatusWithBirthday for Unreal Engine SDK.

Set and synchronize region and birthday.

Function definition

public static void ComplianceMultiSetStatusWithBirthday(string openid, string token, string region, string birthday, int certificate_type, string extra, int channel_id)

Input parameters

ParameterTypeDescription
openIDstringOpenID obtained from AuthResult
tokenstringToken obtained from AuthResult
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
birthdaystringDate of birth, format: yyyy-mm-dd
certificate_typeint0: Not required
1: Self-verification
2: Credit card
3: Email
extrastringExtra information
channel_idintChannelID obtained from AuthResult
is_uidboolWhether to set compliance information with uid instead of openid. Set to false by default, this value does not need to be changed and can be ignored.

Observers

The callback processing interface is ComplianceResultObserver. The callback data structure is ComplianceResult

The callback methodID is INTL_COMPLIANCE_MULTI_SET_STATUS.

Code sample

string openID = "123456789";
string token = "qwewerasd123456789qwewer";
string region = "413";
string birthday = "1970-01-01";
int certificate_type = 1;
int channelID = 131;
bool is_uid = false;
INTLAPI.ComplianceMultiSetStatusWithBirthday(openID,token,region,birthday,certificate_type,"{}", channelID, false);