update Email
Task<JSONObject> updateEmail(String userId, String newEmail, String oldEmail, Session userCenterApiSession)
Content copied to clipboard
Update the email of a user.
Return
A task which will resolve to an empty JSONObject.
Parameters
user Id
The user's id.
new Email
A new email address.
old Email
The previous email address of the user.
user Center Api Session
The session for the User Center API which was returned when the client was authenticated.
Throws
If the emails can't be JSON serialized.