Skip to main content

Modify account with verification code (ModifyAccountWithVerifyCode)

[MSDK & Player Network SDK] Modify an account using a verification code. This feature is supported by both Player Network SDK and MSDK.

Supported Platforms

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

ParametersTypeDescription
oldAccountstringOld account
oldphoneAreaCodestringPhone area code for the old account.If the account was registered using an email address, this field should be left empty.
passwordstringFor more information, see Password Guidelines.
newAccountstringNew account
newAccountVerifyCodestringVerification code for new account
newphoneAreaCodestringPhone area code for the new account.If the account was registered using an email address, this field should be left empty.
channelstringChannel
Currently not used by Player Network SDK, can be set to ""
langTypestringLanguage Type
Currently not used by Player Network SDK, can be ""
extraJsonstringExtended information

Callback Handling

The callback handling interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_MODIFY_ACCOUNT.

Code Example

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