I am developing an app to retrieve mail/calendar information. I am using the App model v2.0 OAuth2 and the Outlook REST API. I have a personal Live ([email protected]) account which can use the outlook.com web interface to view mail/calendar data.
When I use the same account with Outlook REST API I get the following error (also in OAuth Outlook Sandbox) while doing this request: https://outlook.office.com/api/v2.0/me/mailfolders/inbox/messages?$top=10
"error": {
"code": "ErrorMissingEmailAddress",
"message": "When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids."
}
What is the cause of this error and how can it be solved ?