我正在尝试在 Azure (C#) 中构建移动服务,将数据推送到客户端应用程序。我需要提取的数据来 self 不太熟悉也无法访问的共享点站点。
我已经在线阅读了一些资源,但每当我尝试通过 _api/web/lists/ 或 _api/web/lists/getbytitle('pages' 快速访问列表时),我收到身份验证提示。
这是默认行为还是其余 api 已关闭?我是否需要构建一个 sharepoint 应用程序来生成 oauth token ,然后访问该列表?
我基本上一无所知,因此任何信息都将不胜感激。
最佳答案
使用以下 URL:
- 获取所有列表
http://servername/_api/web1/web2/lists/
- 按标题获取列表
http://servername/_api/web1/web2/lists/GetByTitle('myList')
- 获取特定列表中的所有项目
http://servername/_api/web1/web2/lists/GetByTitle('myList')/items
- 按项目 ID 列出项目
http://servername/_api/web1/web2/lists/GetByTitle('myList')/items/GetItemById(4)
- 返回具有特定字段的项目
http://servername/_api/web1/web2/lists/GetByTitle('myList')/items?$select=Title,Age
更多详情请访问链接http://wmostafaw.wordpress.com/2012/11/17/odata-in-sharepoint-2013-lists-and-items/
关于c# - 通过 REST 从 SharePoint 2013 中的列表中提取数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23484339/