Skip to main content

QueryVerifyCodeStatus

[MSDK & Player Network SDK] Queries the verification code status.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParameterTypeDescription
accountstringAccount, which can be registered with an email address or phone number.
verifyCodestringVerification code
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_QUERY_VERIFY_CODE_STATUS.

Code Sample

UnionAdapterAPI.GetAccountService().QueryVerifyCodeStatus("account", "verifyCode", 0, "86");