Skip to main content

Request Verification Code (RequestVerifyCode)

AndroidiOSWindows
If you're using the Unity engine, see the 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 = "{}");

Parameter Instructions

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