๐Ÿ“ฆ dkershaw10 / Microsoft-Graph-UWP-Connect-SDK

This sample shows how to connect your Windows 10 Universal app to Office 365 using the Microsoft Graph SDK to send an email.

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/dkershaw10/Microsoft-Graph-UWP-Connect-SDK.git
HTTPS git clone https://github.com/dkershaw10/Microsoft-Graph-UWP-Connect-SDK.git
SSH git clone git@github.com:dkershaw10/Microsoft-Graph-UWP-Connect-SDK.git
CLI gh repo clone dkershaw10/Microsoft-Graph-UWP-Connect-SDK
dkershaw10 dkershaw10 Update to use contacts and onedrive, and MSAL fd623bb 9 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ readme-images
๐Ÿ“„ .gitignore
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ README.md

๏ปฟ# Microsoft Graph Connect Sample for UWP

Table of contents

##Introduction

This sample shows how to connect your Windows 10 Universal app to Office 365 using the Microsoft Graph API (previously called Office 365 unified API) to send an email. It uses the Microsoft Graph SDK and Microsoft.Graph.OAuth2 helper library to handle user authentication and manipulation of the data returned by the Microsoft Graph. The sample uses the v2.0 authentication endpoint, which enables users to sign in with either their personal or work or school Microsoft accounts.

Prerequisites ##

This sample requires the following:

##Register and configure the app

  • Sign into the App Registration Portal using either your personal or work or school account.
  • Select Add an app.
  • Enter a name for the app, and select Create application.
The registration page displays, listing the properties of your app.
  • Under Platforms, select Add platform.
  • Select Mobile platform.
  • Copy both the Client Id (App Id) and Redirect URI values to the clipboard. You'll need to enter these values into the sample app.
The app id is a unique identifier for your app. The redirect URI is a unique URI provided by Windows 10 for each application to ensure that messages sent to that URI are only sent to that application.

  • Select Save.

Build and debug ##

Note: If you see any errors while installing packages during step 2, make sure the local path where you placed the solution is not too long/deep. Moving the solution closer to the root of your drive resolves this issue.

  • After you've loaded the solution in Visual Studio, configure the sample to use the client id and redirectURI that you registered by adding the corresponding values for these keys in the Application.Resources node of the App.xaml file.
Office 365 UWP Microsoft Graph connect sample`

  • Press F5 to build and debug. Run the solution and sign in with either your personal or work or school account.

Questions and comments

We'd love to get your feedback about the UWP Microsoft Graph Connect SDK project. You can send your questions and suggestions to us in the Issues section of this repository.

Your feedback is important to us. Connect with us on Stack Overflow. Tag your questions with [MicrosoftGraph] and [office365].

Additional resources ##

Copyright

Copyright (c) 2016 Microsoft. All rights reserved.