Skip to main content

Query verification code status (QueryVerifyCodeStatus)

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

Supported platforms

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

ParametersTypeDescription
accountstringAccount can be registered with email and phone number
verifyCodestringVerification code
codeTypeintType of Verification Code Request:
0 – Registration
1 – Change Password
2 – Login with Verification Code
3 – Modify Account Information
areaCodestringPhone area code example "86" for China, leave empty if the account is an email.
extraJsonstringExtended information
channelstringChannel
Currently not used by Player Network SDK, can be set to c"
langTypestringLanguage type
Currently not used by Player Network SDK, can be ""

Callback Handling

The callback handler interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_QUERY_VERIFY_CODE_STATUS.

Code Example

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