ModifyAccountWithVerifyCode
[MSDK & Player Network SDK] Modify account information with the verification code.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
void ModifyAccountWithVerifyCode(
string oldAccount,
string oldAccountVerifyCode,
string oldPhoneAreaCode,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string channel = "Self",
string langType = "en_US",
string extraJson = "{}");
static void ModifyAccountWithVerifyCode(
const std::string &old_account,
const std::string &old_account_verify_code,
const std::string &old_phone_area_code,
const std::string &new_account,
const std::string &new_account_verify_code,
const std::string &new_phone_area_code,
const std::string &channel = "Self",
const std::string &lang_type = "en_US",
const std::string &extra_json = "{}");
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
oldAccount | string | Old account |
oldphoneAreaCode | string | Phone area code of the old account. If the account is registered with an email address, the field is left empty. |
password | string | Password. For more information, see Password Rules. |
newAccount | string | New account |
newAccountVerifyCode | string | Verification code of the new account |
newphoneAreaCode | string | Phone area code of the new account. If the account is registered with an email address, the field is left empty. |
channel | string | Channel Currently not in use, pass "" |
langType | string | Language type Currently not in use, pass "" |
extraJson | string | Extended information |
Parameter | Type | Description |
---|---|---|
old_account | std::string | Old account |
old_phone_area_code | std::string | Phone area code of the old account. If the account is registered with an email address, the field is left empty. |
password | std::string | Password. For more information, see Password Rules. |
new_account | std::string | New account |
new_account_verify_code | std::string | Verification code of the new account |
new_phone_area_code | std::string | Phone area code of the new account. If the account is registered with an email address, the field is left empty. |
channel | std::string | Channel Currently not in use, pass "" |
lang_type | std::string | Language type Currently not in use, pass "" |
extra_json | std::string | Extended information |
Callback Processing
The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.
- Unity
- Unreal Engine
The callback event is AccountEvents.
The callback methodID is GUA_ACCOUNT_MODIFY_ACCOUNT
.
The callback event is OnAccountResultNotify.
The callback methodID is kMethodIDAccountModifyAccount
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().ModifyAccountWithVerifyCode("oldAccount", "oldAccountVerifyCode", "886", "newAccount", "newAccountVerifyCode", "86");
GUA_NAMESPACE::GUAAccountService::ModifyAccountWithVerifyCode("OldAccount", "OldAccountVerifyCode", "886", "NewAccount", "NewAccountVerifyCode", "86");