Skip to main content

ModifyAccountWithVerifyCode

[MSDK & Player Network SDK] Modify account information with the verification code.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

void ModifyAccountWithVerifyCode(
string oldAccount,
string oldAccountVerifyCode,
string oldPhoneAreaCode,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string channel = "Self",
string langType = "en_US",
string extraJson = "{}");

Input Parameters

ParameterTypeDescription
oldAccountstringOld account
oldphoneAreaCodestringPhone area code of the old account. If the account is registered with an email address, the field is left empty.
passwordstringPassword. For more information, see Password Rules.
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.
channelstringChannel
Currently not in use, pass ""
langTypestringLanguage type
Currently not in use, pass ""
extraJsonstringExtended information

Callback Processing

The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback methodID is GUA_ACCOUNT_MODIFY_ACCOUNT.

Code Sample

UnionAdapterAPI.GetAccountService().ModifyAccountWithVerifyCode("oldAccount", "oldAccountVerifyCode", "886", "newAccount", "newAccountVerifyCode", "86");