从Cordova Angular应用程序访问Sharepoint 2016 REST API数据 [英] Access Sharepoint 2016 REST API Data from Cordova Angular Application
本文介绍了从Cordova Angular应用程序访问Sharepoint 2016 REST API数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想从SharePoint REST API获取/发布数据到角度应用程序。 Cordova angular应用程序需要支持iOS
和Android平台。
请指导我如何使用共享点REST API进行身份验证和获取/发布数据。
Please guide me on how to authenticate and get/post data using share point REST API.
提前致谢。
推荐答案
您好,
要使用SharePoint REST API进行身份验证,我们需要从以下位置获取表单摘要值:
To authenticate with SharePoint REST API, we need to get form digest value from:
https://mySharePointSite/_api/contextinfo
将摘要添加到响应头中:
Add the disgest into response header:
关于如何进行CRUD操作,请参阅演示:
About how to do CRUD action, please refer the demo:
CRUD操作使用SharePoint 2013 Rest API进行列表
谢谢
最好的问候
这篇关于从Cordova Angular应用程序访问Sharepoint 2016 REST API数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文