Skip to main content

ModifyAccountWithVerifyCode

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

Function definition

public void ModifyAccountWithVerifyCode(
string oldAccount,
string oldAccountVerifyCode,
string oldPhoneAreaCode,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string extraJson = "{}");

Input parameters

ParameterTypeDescription
oldAccountstringOld account
oldAccountVerifyCodestringVerification code of the old account
oldPhoneAreaCodestringPhone area code of the old account. If the account is registered with an email address, the field is left empty.
newAccountstringNew account
newAccountVerifyCodestringVerification code of the new account
newPhoneAreaCodestringPhone area code of the new account. If the account is registered 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_MODIFY_ACCOUNT.

Code sample

string oldAccount = "";
string oldAccountVerifyCode = "";
string oldPhoneAreaCode = "86";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "86";

INTLAPI.ModifyAccountWithVerifyCode(oldAccount, oldAccountVerifyCode, oldPhoneAreaCode,
newAccount, newAccountVerifyCode, newPhoneAreaCode);