Skip to main content

Query Verification Code Status

AndroidiOSWindows
If you're using the Unity engine, see the QueryVerifyCodeStatus for 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

ParametersTypeExplanation
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, "");