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
| Parameters | Type | Explanation |
|---|---|---|
| account | string | Account can be registered with email and phone number |
| codeType | Verification code type (VerifyCodeType) | Type of verification code request |
| phoneAreaCode | string | Phone area code, for instance "86" for China.If registered with an email address, this field is empty. |
| extraJson | string | Extended 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);