1
votes

I am trying to read emails from Exchange online through a Office 365 API.with using my username and password for authentication.

Is it possible to access the O365 api? (only using user credentials)

How can I do that? Anyone can help is appreciated.

1

1 Answers

1
votes

If your exchange online is part of Office 365, you should definitively take a look here : http://dev.office.com

You will find many tutorials to get access to your mails. Take a look here : http://dev.office.com/getting-started/office365apis

It uses the Microsoft Graph to query your mailbox and retrives messages :

https://graph.microsoft.com/v1.0/me/mailFolders/Inbox/messages 

The authentication process is provided byt Azure Active Directory, through ADAL SDK.

In Visual Studio, you can create easily an application, and then call the submenu 'Add connected services' and you're done !