针对邮件、日历和联系人的 Microsoft Graph REST APIMicrosoft Graph REST APIs for mail, calendars, and contacts

查找有关可用于在混合部署中访问 Office 365、Exchange Online 或 Exchange Server 中的邮件、日历和联系人的 Microsoft Graph Api 的信息。Find information about the Microsoft Graph APIs that you can use to access mail, calendars, and contacts in Office 365, Exchange Online, or Exchange Server in hybrid deployments.

在混合部署中,Office 365、Exchange Online 和 Exchange Server 提供了一种使用电子邮件、日历和联系人的新方法。Office 365, Exchange Online, and Exchange Server in hybrid deployments provide a new way to work with email, calendars, and contacts. Microsoft Graph 邮件、日历和联系人 REST Api 提供了一种强大且易于使用的方法来访问和操作 Exchange 数据。The Microsoft Graph Mail, Calendar, and Contact REST APIs provide a powerful, easy-to-use way to access and manipulate Exchange data. 这些 Api 基于开放标准:用于身份验证的 OAuth 版本2.0,以及用于数据抽象的 OData 版本4.0 和 JSON。These APIs are based on open standards: OAuth version 2.0 for authentication, and OData version 4.0 and JSON for data abstraction. 这具有以下优点:This provides the following advantages:

  • 由于这些 Api 需要 OAuth 进行身份验证,因此应用程序不需要处理或存储用户凭据。Because these APIs require OAuth for authentication, your application does not have to handle or store user credentials.

  • 通过 OAuth,可以向用户数据请求严格范围的权限。OAuth makes it possible to request tightly scoped permissions to user data. 例如,您可以将应用程序设计为请求权限并只读取用户的日历。For example, you might design your application to request permission and read only a user's calendar.

使用电子邮件和邮件文件夹Work with email and mail folders

您可以使用邮件 API来获取、创建、更新、删除、移动、复制和发送电子邮件。You can use the Mail API to get, create, update, delete, move, copy, and send email. 您还可以获取、创建、更新和删除邮件文件夹。You can also get, create, update, and delete mail folders.

使用事件、日历和日历组Work with events, calendars, and calendar groups

您可以使用日历 API来获取、创建、更新和删除事件。You can use the Calendar API to get, create, update, and delete events. 您还可以获取、创建、更新和删除日历组和日历。You can also get, create, update, and delete calendar groups and calendars.

使用联系人和联系人文件夹Work with contacts and contact folders

您可以使用联系人 API来获取、创建、更新和删除用户邮箱中的联系人。You can use the Contacts API to get, create, update, and delete contacts in a user's mailbox. 您还可以获取联系人文件夹。You can also get contact folders.

后续步骤Next steps

转到Microsoft Graph 文档页面,以获取有关邮件、日历和联系人 api 的详细信息,包括有关设置环境和开始使用 api 的指南。Head over to the Microsoft Graph documentation page to get more information about the Mail, Calendar, and Contacts APIs, including guidance for setting up your environment and getting started with the APIs.

此外,请务必查看快速入门代码示例,以查看这些 api 的操作。Also be sure to check out the quick starts and code samples to see these APIs in action.

另请参阅See also