Skip to main content

Modify account with verification code (ModifyAccountWithVerifyCode)

AndroidiOSWindows
If you're using Unreal Engine, see the ModifyAccountWithVerifyCode in Unreal Engine SDK.

Function Definition

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

Parameter Instructions

ParametersTypeExplanation
oldAccountstringOld account
oldAccountVerifyCodestringVerification code for old account
oldPhoneAreaCodestringPhone area code for the old account.If the account is registered via email, this will be empty.
newAccountstringNew account
newAccountVerifyCodestringVerification code for new account
newPhoneAreaCodeStringPhone area code for the new account.If the account is registered via email, this will be empty.
extraJsonstringExtended 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 oldAccountVerifyCode = "";
string oldPhoneAreaCode = "86";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "86";

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