Closed ghost closed 11 years ago
The user's email is not currently exposed to third parties due to privacy issues. This is poorly documented, but we'll be updating this soon.
The current description in the API reference is:
"The email address registered for the user. Must comply with RFC 2821 and RFC 2822. For privacy reasons, this field may not be populated when a User is retrieved via a call to UserStore.getUser(). Length: EDAM_EMAIL_LEN_MIN - EDAM_EMAIL_LEN_MAX Regex: EDAM_EMAIL_REGEX"
I don't know if I'm doing something wrong or if it's a bug, but it seems I cannot retrieve user email, and always get null.
Here is my code: String authToken = EvernoteService.this._session.getAuthToken(); User user = EvernoteService.this._session.createUserStore().getUser(authToken); EvernoteService.this._userEmail = user.getEmail();