Skip to main content

QueryVerifyCodeStatus

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see QueryVerifyCodeStatus for Unreal Engine SDK.

This API is used to query the status of verification codes.

Function definition

public void QueryVerifyCodeStatus(string account, string verifyCode, VerifyCodeType codeType, string phoneAreaCode, string extraJson="{}");

Input parameters

ParameterTypeDescription
accountstringAccount, which can be registered with an email address or phone number.
verifyCodestringVerification code
codeTypeVerifyCodeTypeType of requested verification code
phoneAreaCodestringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
extraJsonstringExtended information

Observers

The callback processing interface is AuthAccountResultObserver. The callback data structure is AccountResult.

The callback methodID is INTL_AUTH_QUERY_VERIFY_CODE_STATUS.

Code sample

string account = "";
string verifyCode = "";
VerifyCodeType codeType = VerifyCodeType.Register;
string phoneAreaCode = "";

INTLAPI.QueryVerifyCodeStatus(account, verifyCode, codeType, phoneAreaCode);