Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Sharepoint-外部查询文章数据_Php_Sharepoint_Sharepoint 2010_Sharepoint Api - Fatal编程技术网

Php Sharepoint-外部查询文章数据

Php Sharepoint-外部查询文章数据,php,sharepoint,sharepoint-2010,sharepoint-api,Php,Sharepoint,Sharepoint 2010,Sharepoint Api,我设置了一个Sharepoint网站,其中包含一个新闻发布网站的网站集。 新闻页面基于文章页面布局,因此包含标题、日期、署名、描述、图像、图像alt、汇总图像等 我一直在考虑使用REST提要检索此信息,例如 servername/sites/sitecolection/news/_vti_bin/ListData.svc/Pages 但这只返回标题和日期。我还需要所有其他字段 检索此信息以便将其拉入外部php站点的最佳方法(如果有!)是什么?此端点应该支持OData,以便您可以执行$select

我设置了一个Sharepoint网站,其中包含一个新闻发布网站的网站集。
新闻页面基于文章页面布局,因此包含标题、日期、署名、描述、图像、图像alt、汇总图像等

我一直在考虑使用REST提要检索此信息,例如
servername/sites/sitecolection/news/_vti_bin/ListData.svc/Pages

但这只返回标题和日期。我还需要所有其他字段


检索此信息以便将其拉入外部php站点的最佳方法(如果有!)是什么?

此端点应该支持OData,以便您可以执行$select=field1、field2。。。。正如你在上面看到的
然而,SP 2013提供了对REST和OAuth的支持,这在这种情况下非常有帮助

检查您的浏览器设置。如果它只是返回标题和日期,可能是因为您使用的浏览器将列表视为RSS提要,就像Hameds提出的那样。如果要查看字段,请关闭RSS提要阅读视图。与使用Internet Explorer类似,转到“齿轮”图标,Internet选项-->内容选项卡-->提要和web切片设置-->取消选中“打开提要阅读视图”。然后刷新页面。

Hi Hameds。是的,我很快就看过了。我是否可以筛选结果,例如,以10行为一行进行选择(用于分页)并对结果进行排序?