updateEmail

Task<JSONObjectupdateEmail(String userId, String newEmail, String oldEmail, Session userCenterApiSession)

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.