【问题标题】:How can I access a Sharepoint Document Repository with OneDrive for Business API?如何使用 OneDrive for Business API 访问 Sharepoint 文档存储库?
【发布时间】:2016-05-13 00:03:04
【问题描述】:

我正在尝试编写一个可以访问 SharePoint 团队网站上的文档的应用程序。据我了解,OneDrive for Business 和 SharePoint 团队网站或多或少是一回事。我在想 OneDrive for Business API 应该能够做到这一点,但到目前为止,我无法访问我的 OneDrive 页面之外的任何文档。

https://dev.onedrive.com/

在 sharepoint.stackexchange.com 上发布: https://sharepoint.stackexchange.com/questions/169051/how-can-i-access-a-sharepoint-document-repository-with-onedrive-for-business-api

【问题讨论】:

标签: sharepoint onedrive


【解决方案1】:

我想我已经明白了。您可以通过以下方式列出共享点站点的根级文件夹:https://{tenant}.sharepoint.com/{site-path}/_api/v2.0/drive/root/children

如果您正在查看 SharePoint 团队网站主页的 URL,{tenant} 和 {site-path} 分别是:

https://{tenant}.sharepoint.com/{site-path}/_layouts/15/start.aspx#/SitePages/Home.aspx

【讨论】:

    猜你喜欢
    • 2015-04-25
    • 2017-05-24
    • 1970-01-01
    • 2016-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-15
    相关资源
    最近更新 更多