Skip to main content

Query Verification Code Status

AndroidiOSPC

If you are using the Unity engine, see QueryVerifyCodeStatus in the Unity SDK.

Query the status of the verification code.

Function definition​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool QueryVerifyCodeStatus(
const FString Account,
const FString VerifyCode,
const UVerifyCodeType CodeType,
const FString PhoneAreaCode,
const FString ExtraJson = "{}");

Input Parameters​

ParametersTypeDescription
AccountFStringAccount, can be registered using email or phone number.
VerifyCodeFStringVerification code
CodeTypeUVerifyCodeTypeType of verification code requested
PhoneAreaCodeFStringPhone area code, e.g., "86" for China.If the account is registered with an email address, the field is empty.
ExtraJsonFStringAdditional information

Callback processing​

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

Callback ID is kMethodIDAuthQueryVerifyCodeStatus.

Code example​

UINTLSDKAPI::QueryVerifyCodeStatus("youraccount@email.com", "12345", UVerifyCodeType::kVerifyCodeTypeRegister, "");