Read emails from the online store (Office 365) through the Windows Forms app

I am trying to read letters from my O365 inbox through a Windows forms application. I want my application to read letters from O365 inbox using my username and password. Is it possible to access the O365 api without registering an application on Azure? (only using user credentials)

I followed this article in msdn, https://msdn.microsoft.com/en-us/library/office/dn567668(v=exchg.150).aspx I have a problem in this line:

result = context.AcquireToken(resourceId, ClientID, _returnUri); // parameters are no longer valid in this method 
+9
c # office365 outlook-restapi
source share
2 answers

Yes, you can use the Exchange web service API . It is intended for a client application. Follow the link, you can find many examples.

One note: to create a service client, you need to specify the version of Exchange Server, for exchange it must be ExchangeVersion.Exchange2013_SP1 .

 ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); 
+13
source share

Given that this is a fairly popular question that appears rather high in the Google search ranking, it is probably worth noting that at the time of writing this article, only 12 months remained (before writing the article).

The preferred way to connect to these services is through OAuth.

Question: Will my application stop working after making these changes?

A: Perhaps this depends on the application itself and on how it was encoded. If he uses EWS, and if he uses basic authentication, then yes, on October 13, 2020 he will not be able to connect. However, if the application using Modern Auth / OAuth, then no, it will work the same as before.

Upcoming Changes to the Exchange Web Services API (EWS) for Office 365

This applies to those who are currently using the above method from Matt for Office 365 postal services. Anyone who uses on-site exchange services remains unchanged.

0
source share

All Articles