简体   繁体   中英

Office365 Windows Application using MVVM

I am newly developing office365 desktop application. I got some sample code from here . I followed the steps mentioned in REGISTER YOUR APP . I am able to get all the details like contact, emails and calendars without a problem.

Questions:

  1. By using MVVC platform can i generate a desktop application?

  2. How can i connect to the Exchange Server with Oauth token? Any example? Actually i followed the following procedure:

     AuthenticationContext authenticationContext = new AuthenticationContext(“login.windows.net/treyresearch1.onmicrosoft.com”); AuthenticationResult result = await authenticationContext.AcquireTokenAsync(“myappurl”,“2b8606b7-6bad-4e8b-ac3c-1356aca8ab0e”); 

    But getting AuthenticationContext does not exist. What is the service that I need to import to run this?

  3. How can i add a delegate using Exchange Server?

Check out the example on the link below, I also used it as started point for my WPF application. It has a example WPF project:

Office365Api.Overview example

This example also contains some helper classes for Authentication etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM