简体   繁体   English

如何使用SharePoint Online的SharePoint REST API访问默认的SharePoint图像库?

[英]How do I access the default SharePoint image library by using the SharePoint REST API for SharePoint Online?

I'm using the info from Get all files and folders in default document library to access the default document library. 我正在使用“ 获取默认文档库中的所有文件和文件夹”中的信息来访问默认文档库。 The resource to access files and folders in the default document library is GET https://tenant.sharepoint.com/_api/files . 用于访问默认文档库中文件和文件夹的资源是GET https://tenant.sharepoint.com/_api/files In a Web browser, the URL is something like this: https://tenant.sharepoint.com/Documents/ . 在Web浏览器中,URL如下所示: https : //tenant.sharepoint.com/Documents/ Now then, I'd like to access the default image library in my SharePoint site. 现在,我要访问SharePoint网站中的默认图像库。 I don't know what the resource URL looks like to access the image library at https://tenant.sharepoint.com/SiteImages/ . 我不知道访问https://tenant.sharepoint.com/SiteImages/上的图像库的资源URL是什么样的。

How do I use the SharePoint REST API to access the default image library with my SharePoint Online site? 如何使用SharePoint REST API通过SharePoint Online网站访问默认图像库?

请尝试以下操作:

https://tenant.sharepoint.com/_api/files('SiteImages')/Children

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM