本文介绍了调用Sharepoint Rest API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问:我想获取Sharepoint列表中的项目,我在Azure中创建了我的应用,并提供了正确的权限.

Q: I want to get the items of a Sharepoint list, i created my app in the Azure and gived the correct permissions.

当我使用以下URL调用共享点API时:"https://Server.sharpoint.com/_api/web/lists/GetByTitle('Test')/items",我收到此错误作为响应:

when i call the sharepoint API using this URL: "https://Server.sharpoint.com/_api/web/lists/GetByTitle('Test')/items" , i get this Error as response:

<?xml version ="1.0"编码="utf-8"?< m:错误xmlns:m ="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"< m:code> -2147024891,
System.UnauthorizedAccessException</m:code>
< m:消息xml:lang ="zh-CN">访问被拒绝.您没有执行此操作或访问此资源的权限.</m:消息></m:错误>

<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-2147024891,
System.UnauthorizedAccessException</m:code>
<m:message xml:lang="en-US">Access denied. You do not have permission to perform this action or access this resource.</m:message></m:error>

能请你帮我吗?

谢谢.

推荐答案


这篇关于调用Sharepoint Rest API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 03:43
查看更多