如何使用OneDrive for Business API访问Sharepoint文档存储库?

时间:2016-02-03 16:52:36

标签: sharepoint onedrive

我正在尝试编写可以访问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

1 个答案:

答案 0 :(得分:0)

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

如果您正在查看SharePoint teamsite主页{tenant}和{site-path}的URL,请执行以下操作:

的https:// {租户} .sharepoint.com / {站点路径} /_layouts/15/start.aspx#/SitePages/Home.aspx