Request Verification Code (RequestVerifyCode)
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);