azure - 使用图形 API 访问 Sharepoint 网站内容

标签 azure sharepoint azure-ad-graph-api

我想从我的组织 SharePoint 下载一些视频内容。我已按照以下步骤操作。

  1. 通过调用 https://login.microsoftonline.com/common/oauth2/token 获得不记名 token .
  2. 然后我就可以使用 https://graph.microsoft.com/v1.0/sites 访问 graphapi .

我想知道之后如何访问我的视频内容以及如何下载或播放它。

最佳答案

您应该引用Download the contents of a DriveItem获取存储在 Sharepoint 中的文件内容。

GET https://graph.microsoft.com/v1.0/sites/{siteId}/drive/items/{item-id}/content

响应将包含该文件的预先验证的下载 URL。只需使用此网址即可下载。

关于azure - 使用图形 API 访问 Sharepoint 网站内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61267962/

相关文章:

sql-server - 创建并部署包含数据的 DACPAC 文件

c# - Azure移动应用程序自定义json序列化

c# - 以编程方式查询 SharePoint 列表

powershell - 缺少 Microsoft Graph ServicePrincipal

powershell - 'CompactToken 解析失败,错误代码为 : -2147184105' when trying to access Users with Office 365 Unified API using PowerShell

c# - 是什么导致 Azure 事件中心 ReceiverDisconnectedException/LeaseLostException?

Azure kubernetes - 多个托管身份?

jquery - 网址已添加到按钮

javascript - 检索两个列表,对值进行排序和比较,然后显示所有结果

azure - 从 Azure 应用服务轻松身份验证获取 Microsoft Graph 的 AccessToken