Skip to main content

Request Verification Code (RequestVerifyCode)

AndroidiOSWindows
If you're using Unreal Engine, see RequestVerifyCode for 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);