本教程指导你如何构建使用 Microsoft Graph API 检索用户的日历信息的适用于 Excel 的 Office 外接程序。This tutorial teaches you how to build an Office Add-in for Excel that uses the Microsoft Graph API to retrieve calendar information for a user.

提示

如果你更喜欢仅下载已完成的教程,可以下载或克隆 GitHub 存储库If you prefer to just download the completed tutorial, you can download or clone the GitHub repository.

先决条件Prerequisites

在开始此演示之前,应在开发计算机上安装Node.js和一个。Before you start this demo, you should have Node.js and Yarn installed on your development machine. 如果你没有安装Node.js,请访问上一链接,查看下载选项。If you do not have Node.js or Yarn, visit the previous link for download options.

备注

Windows 用户可能需要安装 Python 和 Visual Studio 生成工具,以支持需要从 C/C++ 编译的 NPM 模块。Windows users may need to install Python and Visual Studio Build Tools to support NPM modules that need to be compiled from C/C++. Windows Node.js安装程序提供了自动安装这些工具的选项。The Node.js installer on Windows gives an option to automatically install these tools. 或者,您也可以按照以下说明操作 https://github.com/nodejs/node-gyp#on-windowsAlternatively, you can follow instructions at https://github.com/nodejs/node-gyp#on-windows.

你还应该拥有具有邮箱的个人 Microsoft 帐户Outlook.com或 Microsoft 工作或学校帐户。You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. 如果你没有 Microsoft 帐户,则有两种获取免费帐户的选项:If you don't have a Microsoft account, there are a couple of options to get a free account:

备注

本教程使用 Node 版本 14.15.0 和一线 1.22.0 编写。This tutorial was written with Node version 14.15.0 and Yarn version 1.22.0. 本指南中的步骤可能与其他版本一起运行,但尚未经过测试。The steps in this guide may work with other versions, but that has not been tested.

反馈Feedback

请在 GitHub 存储库中提供有关本教程 的任何反馈Please provide any feedback on this tutorial in the GitHub repository.