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
userId
The user's id.
newEmail
A new email address.
oldEmail
The previous email address of the user.
userCenterApiSession
The session for the User Center API which was returned when the client was authenticated.
Throws
If the emails can't be JSON serialized.