一个 Outlook REST API -你最喜爱的平台 - 超过 4 亿用户One Outlook REST API - your favorite platform - 400+ million users

由于 REST 简单易用,使用你喜爱的语言和 IDE 编写一次应用程序,即可捕获 4 亿月活跃 Outlook.com 用户和数千万活跃 Office 365 用户。With the simplicity of REST, you can use your favorite language and IDE, write your app once, and capture 400 million monthly active Outlook.com users, and tens of millions active Office 365 users.

首先为你的应用选择语言,例如 —Node、Python、Ruby、Swift—。Start with choosing a language for your app—Node, Python, Ruby, Swift—just to name a few. 编写代码,利用全新简化的服务注册并授权应用,访问 Outlook.com 或 Office 365 上的用户邮件、日历和联系人数据。Write the code, take advantage of new, streamlined services to register and authorize the app, and access user's mail, calendar, and contacts data on Outlook.com or Office 365. 可以为 Android、iOS、Windows、网页版、移动版和桌面版使用相同的 Outlook REST AIP。You can use the same Outlook REST API for Android, iOS, Windows, on the web, mobile, and desktop. 无需任何专门的 Exchange 知识!There's no need for any specialized Exchange knowledge!

入门Get started

  1. 注册你的应用。注册只需一分钟的时间。Register your app. Registration takes only a minute.

  2. 开始编码并实施 REST API 调用。Start coding and implement REST API calls.

简化的服务Streamlined services

对于 Outlook.com 和 Office 365,只需简单一步:注册并获取访问用户的邮件、日历和联系人的动态用户授权。There's just one simple process for Outlook.com and Office 365: register and get dynamic user authorization to access users’ mail, calendar, and contacts.

在预览状态下查看以下早期服务:Take an early look at the following services in preview status:

  • Azure Active Directory 管理中心Azure Active Directory admin center

    使用 Microsoft 帐户或 Office 365 订阅帐户注册你的应用。识别 Outlook.com 和 Office 365 的应用只需几步。Use a Microsoft account or Office 365 subscription account to register your app. It takes only a few steps to identify your app for Outlook.com and Office 365.

  • v2 终结点:v2 endpoints:

    使用这些常用的身份验证终结点让用户使用其个人 Outlook.com 帐户或企业或学校凭据登录,并请求访问授权。立即扩展你的应用的使用范围!Use these common authentication endpoints to sign users in with their personal Outlook.com accounts, or business or school credentials, and request authorization for access. Instantly expand the reach of your app!

    • https://login.microsoftonline.com/common/oauth2/v2.0/authorize
    • https://login.microsoftonline.com/common/oauth2/v2.0/token

在以下情况下使用这些预览服务:Use these preview services when:

  • 重写使用 Windows Live API 的现有 Outlook.com 应用*。Rewriting existing Outlook.com apps that use the Windows Live API. Windows Live API 已被 Outlook.com 弃用。Windows Live API has been deprecated for Outlook.com. 计划在服务预览期间适应对这些服务所进行的更改。Plan to accommodate changes to these services over their preview period.
  • 创建访问邮箱数据的新 Outlook.com 和 Office 365 应用。Creating new Outlook.com and Office 365 apps that access mailbox data.

计划在预览期结束后升级生产中的 Office 365 应用。Plan to upgrade in-production Office 365 apps after the preview period is over.

通过 Microsoft Graph 使用的 Outlook REST APIOutlook REST API via Microsoft Graph

使用一个公用的 REST 终结点...Use one common REST endpoint...

https://graph.microsoft.com/{version}

...在以下 API 中对所有 Outlook REST API 进行调用:...to make all Outlook REST API calls in the following APIs:

有关详细信息以及 Graph 终结点和 Outlook API 终结点的比较,请参阅比较 Microsoft Graph 和 Outlook 终结点For more information and a comparison between the Graph endpoints and the Outlook API endpoints, see Compare Microsoft Graph and Outlook endpoints.