This tutorial teaches you how to build a JavaScript single-page app that uses the Microsoft Graph API to retrieve calendar information for a user.

提示

If you prefer to just download the completed tutorial, you can download or clone the GitHub repository.

Prerequisites

Before you start this tutorial, you will need access to an HTTP server to host the sample files. This could be a test server on your development machine, or a remote server. The tutorial includes instructions to use a Node.js package to run a simple test server on your development machine. If you plan to use this option, you should have Node.js installed on your development machine. If you do not have Node.js, visit the previous link for download options.

You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. If you don't have a Microsoft account, there are a couple of options to get a free account:

备注

This tutorial was written with Node version 12.16.1. The steps in this guide may work with other versions, but that has not been tested.

Feedback

Please provide any feedback on this tutorial in the GitHub repository.