1

我试图通过 HTTPS 使用 REST 访问 sharepoint 2013 列表

我使用了以下语法

https://name.sharepoint.com/sites/siteName/_api/web/lists

但它会返回一条错误消息,显示访问被拒绝。您无权执行此操作或访问此资源

我应该在某处给予许可吗?请求可能有什么问题?

4

1 回答 1

1

In the future post this on sharepoint.stackexchange.com bud you will get a faster answer, I only saw this by accident on a google query.

Basically this is by design, it isn't about giving permission only pre authorised accounts will get direct access without authentication and then it is security trimmed after that.

Otherwise you need to authenticate against the api with OAUTH.

The rest api being a massive subject that I cannot possibly cover here I recommend you google:

"using oauth sharepoint rest api"

Some good links are:

http://msdn.microsoft.com/en-gb/library/jj164022.aspx
http://www.sharepointnutsandbolts.com/2013/01/calling-sharepoint-search-using-rest-eg.html

Good luck matey.

于 2013-04-16T10:03:30.020 回答