How do I get the logged in user's email address using Outlook REST API?
I'm using com.microsoft.services.outlook.fetchers.OutlookClient
(https://github.com/OfficeDev/Office-365-SDK-for-Java/blob/master/sdk/outlook-services/src/main/java/com/microsoft/services/outlook/fetchers/OutlookClient.java).
Is extracting it from the JWT access token the only way (see here and here) ? (Latest changes to tokens here)
Thanks
UPDATE: Following this approach:
Get the Inbox parent folder ID:
mClient.getMe().getMailFolders().getById("Inbox").read()
inboxMailFolderResult.getParentFolderId()
Get the parent folder display name using the ID retrieved
mClient.getMe().getMailFolders().getById("ID_RETRIEVED_AAA==").read()
parentMailFolderResult.getDisplayName()
..doesn't seem to work either, I just get Top of Information Store as display name.