Modify account using password (ModifyAccountWithPassword)
Function Definition
public void ModifyAccountWithPassword(
string oldAccount,
string oldPhoneAreaCode,
string password,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string extraJson = "{}");
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| oldAccount | string | Old account |
| oldphoneAreaCode | String | The phone area code of the old account.Leave empty if the account is registered via email. |
| password | string | For more details, see Password Rules. |
| newAccount | String | New account |
| newAccountVerifyCode | string | Verification code for new account |
| newphoneAreaCode | String | Phone area code for the new account.If the account is registered via email, this will be empty. |
| extraJson | String | Extended information |
Observers
The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.
The callback ID is INTL_AUTH_MODIFY_ACCOUNT.
Code example
string oldAccount = "";
string oldPhoneAreaCode = "";
string password = "";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "";
INTLAPI.ModifyAccountWithPassword(oldAccount, oldPhoneAreaCode, password, newAccount,
newAccountVerifyCode, newPhoneAreaCode);