Skip to main content

RequestVerifyCode

[MSDK & Player Network SDK] Requests the verification code.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

void RequestVerifyCode(
string account,
int codeType,
string areaCode = "86",
string extraJson = "{}",
string channel = "Self",
string langType = "en_US");

Input Parameters

ParameterTypeDescription
accountstringAccount, which can be registered with an email address or phone number.
codeTypeintType of requested verification code
0: Registration
1: Modify password
2: Log in with verification code
3: Modify account information
areaCodestringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
extraJsonstringExtended information
channelstringChannel
Currently not in use, pass ""
langTypestringLanguage type
Currently not in use, pass ""

Callback Processing

The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback methodID is GUA_ACCOUNT_REQUEST_VERIFY_CODE.

Code Sample

UnionAdapterAPI.GetAccountService().RequestVerifyCode("account", 0, "86");