Skip to main content

Request Verification Code (RequestVerifyCode)

AndroidiOSPC

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

Function definition​

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

Parameter Instructions​

ParametersTypeDescription
AccountFStringAccount can be registered with email and phone number
CodeTypeUVerifyCodeTypeType of verification code request
PhoneAreaCodeFStringPhone area code, for instance "86" for China.If registered with an email address, this field is empty.
ExtraJsonFStringExtended information

Observers​

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

The callback ID is kMethodIDAuthRequestVerifyCode.

Code example​

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