以json格式获取Sharepoint List数据

编程入门 行业动态 更新时间:2024-10-24 06:25:39
本文介绍了以json格式获取Sharepoint List数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试通过反应应用程序中的rest API获取SharePoint List数据。

输出不是JSON 但是我得到的某种XML作为你可以参考附带的截图。

在屏幕截图中(记事本++),我已经粘贴了网络标签中的回复。

任何人都可以在这方面帮助我,或者你可以为我提供从获取数据(JSON格式)的代码。在React应用程序中的sharepoint列表。

谢谢,

Balaram

解决方案

尝试以下格式。

fetch(`rest endpoint`,{ accept:'application / json; odata = verbose',})。然后

最诚挚的问候,

Lee

Hi,

I am trying to fetch SharePoint List data through a rest API in my react application.

The output is not JSON but some kind of XML I am getting as you can refer the attached screenshot.

In the screenshot(notepad++), I ve pasted the response from Network tab.

Anyone can help me in this regard or can u plz provide me the code to fetch the data(JSON format) from the sharepoint List in React application.

Thanks,

Balaram

解决方案

Hi,

Try below format.

fetch(`rest endpoint`, { accept: 'application/json;odata=verbose', }) .then

Best Regards,

Lee

更多推荐

以json格式获取Sharepoint List数据

本文发布于:2023-10-12 17:21:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1485370.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:格式   数据   json   List   Sharepoint

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!