我使用SharePoint REST API来获取数据,但它在Postman中返回空数据。当我把相同的url在浏览器那里,我可以看到项目的数量返回。有什么建议吗?截图
App的权限请求XML可能有问题请尝试以下代码重置链接中的应用程序权限请求XML:
https://YourSharePointOnlineSiteUrl/_layouts/15/appinv.aspx
然后请求一个新的访问令牌并再次尝试获取数据。