Skip to main content

QueryVerifyCodeStatus

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

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

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

ParameterTypeDescription
AccountFStringAccount, which can be registered with an email address or phone number.
VerifyCodeFStringVerification code
CodeTypeUVerifyCodeTypeType of requested verification code
PhoneAreaCodeFStringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
ExtraJsonFStringExtended information

Observers

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

The callback methodID is kMethodIDAuthQueryVerifyCodeStatus.

Code sample

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