Skip to main content

Request Verification Code (RequestVerifyCode)

AndroidiOSPC

If you are using Unreal Engine, see RequestVerifyCode in the Unreal Engine SDK.

Function definition​

public static void RequestVerifyCode(
string account,
VerifyCodeType codeType,
string phoneAreaCode,
string extraJson = "{}");

Parameter Instructions​

ParametersTypeExplanation
accountstringAccount can be registered with email and phone number
codeTypeVerification code type (VerifyCodeType)Type of verification code request
phoneAreaCodestringPhone area code, for instance "86" for China.If registered with an email address, this field is empty.
extraJsonstringExtended information

Observers​

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

The callback ID is INTL_AUTH_REQUEST_VERIFY_CODE.

Code example​

string account = "";
int codeType = 0;
string verifyCode = "";
string phoneAreaCode = "86";

INTLAPI.RequestVerifyCode(account, codeType, phoneAreaCode);