Skip to main content

Modify account with verification code (ModifyAccountWithVerifyCode)

AndroidiOSPC

If you are using the Unity engine, please refer to ModifyAccountWithVerifyCode in the Unity SDK.

Function definition​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ModifyAccountWithVerifyCode(
const FString OldAccount,
const FString OldAccountVerifyCode,
const FString OldPhoneAreaCode,
const FString NewAccount,
const FString NewAccountVerifyCode,
const FString NewPhoneAreaCode,
const FString ExtraJson = "{}");

Parameter Instructions​

NameTypeDescription
OldAccountFStringOld account
OldAccountVerifyCodeFStringVerification code for old account
OldPhoneAreaCodeFStringPhone area code for the old account; leave empty if the account is an email.
NewAccountFStringNew account
NewAccountVerifyCodeFStringVerification code for new account
NewPhoneAreaCodeFStringPhone area code for the new account, leave empty if it's an email.
ExtraJsonFStringExtended information

Observers​

The callback handler interface is AuthAccountResultObserver.The callback data structure is AccountResult.

Callback ID is kMethodIDAuthModifyAccount.

Code example​

UINTLSDKAPI::ModifyAccountWithVerifyCode("oldaccount@email.com", "12345", "", "newaccount@email.com", "56789", "");