由世纪互联 (21 Viant) 运营的 Office 365 API 端点

应用于: 由世纪互联 (21 Viant) 运营的中国 Office 365

对于由世纪互联运营的 Office 365 中国应用程序,API 资源和相关服务具有与其他 Office 365 产品不同的 URL。 这些差异记录如下。

Microsoft Graph API

使用 Office 365 unified API 的应用程序现在可以升级使用 Microsoft Graph(https://graph.microsoft.io/zh-CN/) 。

服务根端点

由世纪互联 (21 Viant) 运营的 Microsoft Graph Microsoft Graph
https://microsoftgraph.chinacloudapi.cn https://graph.microsoft.com

Microsoft Graph 浏览器

由世纪互联 (21 Viant) 运营的 Microsoft Graph Microsoft Graph
https://graphexplorerchina.azurewebsites.net https://graphexplorer2.azurewebsites.net

了解更多关于 Microsoft Graph 端点和服务功能

Azure Active Directory Graph API

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://graph.chinacloudapi.cn https://graph.windows.net

发现服务 API

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
未启用 https://api.office.com/discovery

如果调用 (https://graph.microsoft.com/),不需要发现服务。

日历 API

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://partner.outlook.cn https://graph.microsoft.com

https://outlook.office.com

例如,要使用由世纪互联运营的 Office 365 的 v2.0 获取用户的日历,请提交一份 GET 请求至 https://partner.outlook.cn/api/v2.0/me/calendars

联系人 API

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://partner.outlook.cn https://graph.microsoft.com

https://outlook.office.com

例如,要使用由世纪互联运营的 Office 365 v2.0 获取用户的联系人,请提交 GET 请求至 https://partner.outlook.cn/api/v2.0/me/contacts

邮件 API

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://partner.outlook.cn https://graph.microsoft.com

https://outlook.office.com

例如,要使用由世纪互联运营的 Office 365 的 v2.0 获取用户的电子邮件,请提交一份 GET 请求至 https://partner.outlook.cn/api/v2.0/me/messages

文件 API

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://{tenant}-my.sharepoint.cn/_api/v1.0/me

https://{tenant}.sharepoint.cn/{site-path}/_api/v1.0
https://graph.microsoft.com

https://{tenant}-my.sharepoint.com/_api/v1.0/me ( OneDrive 商业版)

https://{tenant}.sharepoint.com/{site-path}/_api/v1.0 ( SharePoint 网站)

日历、联系人和邮件 OData 实体

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://partner.outlook.cn/api/{version}/$metadata https://graph.microsoft.com/{version}/$metadata

https://outlook.office.com/api/{version}/$metadata

{version} 中精确指定版本。 例如, @odata.context 对于由世纪互联运营的 Office 365 v2.0 中的日历实体而言为 https://partner.outlook.cn/api/v2.0/$metadata#Me/Calendars/$entity

文件 OData 实体

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://{tenantId}-my.sharepoint.cn/_api/v1.0/$metadata https://graph.microsoft.com/v1.0/$metadata

https://{tenantId}-my.sharepoint.com/_api/v1.0/$metadata


以下各节与帐户和身份验证相关。

Microsoft Azure

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://account.windowsazure.cn https://account.windowsazure.com

转至 https://account.windowszaure.cn,为由世纪互联运营的 Office 365 设置开发环境。 有关更多信息,请参阅设置您的 Office 365 开发环境

Azure OpenID Connect 和 OAuth

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://login.chinacloudapi.cn https://login.microsoftonline.com

使用 https://login.chinacloudapi.cn/common/oauth2/authorize 验证用户身份并 https://login.chinacloudapi.cn/common/oauth2/token 获取应用令牌,以便调用由世纪互联 (21Viane) 运营的 Office 365 。

Office 365 开发人员网站

在以下 URL 中,{your-sub-domain} 是设置开发人员网站时指定的名称。

由世纪互联 (21 Viant) 运营的 Office 365 Office 365
https://{your-sub-domain}.partner.onmschina.cn https://{your-sub-domain}.onmicrosoft.com