Skip to main content

RequestVerifyCode

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

Function definition

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

Input parameters

ParameterTypeDescription
accountstringAccount, which can be registered with an email address or phone number.
codeTypeVerifyCodeTypeRequest verification code type
phoneAreaCodestringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
extraJsonstringExtended information

Observers

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

The callback methodID is INTL_AUTH_REQUEST_VERIFY_CODE.

Code sample

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

INTLAPI.RequestVerifyCode(account, codeType, phoneAreaCode);