page_type | products | languages | extensions | ||||||
---|---|---|---|---|---|---|---|---|---|
sample |
|
|
|
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
This example app demonstrates the Representational State Transfer (REST) interface for Office 365, including authentication, interacting with the calendar, querying the address book, and sending email. The app can be built for Android and the Universal Windows Platform. To get started, register your app with an Office 365 Developer Account, then choose which platform(s) you want to build for.
##Table of Contents
-
Build the App
##About the Interop REST Mail Contacts Calendar App
In the app, after you log into an Office 365 account, you can view your calendar and create single or recurring meetings on your calendar. Meetings can be scheduled with a given location, time slot, and a set of invitees, where the available locations and attendees are queried from Office 365. Each invitee has the option to accept, decline, or tentatively accept a meeting, or to email the organizer. An organizer has the option to reply all or forward the meeting invitation, and to send a running-late message to the invitees.
If the app is built with the Universal Windows Platform you will be able to see the live requests and responses from the Microsoft Graph Universal API in a console at the bottom of the app.
The basic app is able to:
####View Your Calendar
Android | UWP |
---|---|
####View Meeting Details
Android | UWP |
---|---|
####Send a Message to Other Meeting Attendees
Android | UWP |
---|---|
####Modify Meeting Details
Android | UWP |
---|---|
####Create a New Meeting
Android | UWP |
---|---|
##Register the App with an Office 365 Developer Account
- No matter what you use to configure your app, you will need to have an Office 365 Developer account and register your app with it. To sign up for an Office 365 developer account:
-
Join the Office 365 Developer Program and get a free 1 year subscription to Office 365.
-
Follow the link in the confirmation email and create an Office 365 developer account.
-
For detailed instructions on signing up for a developer account go here.
- Once you have created an Office 365 Dev Account, go to graph.microsoft.io to register your app and click App Registration then click Office 365 App Registration Tool or you can go directly to the registration page dev.office.com/app-registration.
- Give your app a name and select Native App in the App type line. Then pick a Redirect URI, the preferred naming convention is: "your Office 365 domain + a unique name for your app", but it is not required, it must however, be formatted as a URI and be unique. For example, I named my app https://greencricketcreations.onmicrosoft.com/MyCalendarApp. The Redirect URI isn't a real website; it is more of a unique identifier for your app. Once you have entered a name and Redirect URI set the permissions. The necessary permissions are:
- Read user profiles
- Read user contacts
- Read and write user calendars
- Read user calendars
- Send mail as user
- Read and write user mail
- Once you have filled out the form, click Register App.
-
When your registration is complete, you will receive a Client ID. Make note of the Client ID and Redirect URI, you will need them to configure your app.
-
If you need more control of the registration options, you can follow these detailed instructions to register your app in Azure. Note that these instructions use the Azure classic portal. You can access the Azure classic portal here.
-
Now you're ready to build your app with Android or the Universal Windows Platform or both!
###Copyright
Copyright (c) 2016 Microsoft. All rights reserved.