Skip to main content

RequestVerifyCode

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

Function definition

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

Input parameters

ParameterTypeDescription
AccountFStringAccount, which can be registered with an email address or phone number.
CodeTypeUVerifyCodeTypeRequest verification code type
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 kMethodIDAuthRequestVerifyCode.

Code sample

UINTLSDKAPI::RequestVerifyCode("youremail@sample.com", UVerifyCodeType::kVerifyCodeTypeRegister, "");