Skip to main content
Version: 5.7.0

ChangeEmailIdentity

Changes email address in email identity for this player

ServiceOperation
identityCHANGE_EMAIL_IDENTITY

Method Parameters

ParameterDescription
oldEmailAddressOld email address
passwordPassword
newEmailAddressNew email address
updateContactEmailWhether to update contact email in profile

Usage

http://localhost:3000
string oldEmailAddress = "oldemail@email.com";
string authenticationToken = "password";
string newEmailAddress = "newemail@email.com";
bool updateContactEmail = true;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.IdentityService.ChangeEmailIdentity(oldEmailAddress, authenticationToken, newEmailAddress, updateContactEmail, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
}
}