Evernote / evernote-sdk-android

Evernote SDK for Android
428 stars 168 forks source link

Can't get User email #19

Closed ghost closed 11 years ago

ghost commented 11 years ago

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();

tyvsmith commented 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"