【问题标题】:How to GET/POST SharePoint list/library data out side of SharePoint?如何在 SharePoint 之外获取/发布 SharePoint 列表/库数据?
【发布时间】:2021-11-12 04:24:14
【问题描述】:

我需要从 SharePoint 外部在 SharePoint 列表中发布数据。我创建了一个 Angular 应用程序,我需要使用带有 REST API 或 PnP/JS 的 Angular 应用程序在 SharePoint 列表中发布数据。

谁能帮我解决这个问题?

谢谢

【问题讨论】:

    标签: angular rest sharepoint-online sharepoint-rest-api pnp-js


    【解决方案1】:

    我猜你可以使用两种方法:

    使用在 SharePoint 中注册应用程序并使用 ClientId 和 ClientSecret 进行身份验证。 参考:Authorization Code OAuth flow for SharePoint Add-ins

    使用 MSAL 库进行身份验证。如果我没记错的话,有一个使用 Angular 进行身份验证的示例。

    参考:Overview of the Microsoft Authentication Library (MSAL)

    【讨论】:

      猜你喜欢
      • 2022-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多