📜  SharePoint-API

📅  最后修改于: 2020-11-19 08:05:11             🧑  作者: Mango


在本章中,我们将介绍访问SharePoint平台的几套API。

API的选择取决于以下不同因素-

  • 申请类型
  • 开发人员现有技能
  • 运行代码的设备

申请类型

有不同类型的应用程序,例如-

  • SharePoint加载项
  • SharePoint页面上的Web部件
  • 在客户端计算机或客户端移动设备上运行的Silverlight应用程序
  • SharePoint中公开的ASP.NET应用程序
  • 在SharePoint网站页面中运行的JavaScript
  • SharePoint应用程序页面
  • 在客户端计算机上运行的Microsoft .NET Framework应用程序
  • Windows PowerShell脚本
  • 在SharePoint服务器上运行的计时器作业

开发人员现有技能

如果您已经具有以下任何一种编程模型的经验,则可以轻松地在SharePoint中创建应用程序,而无需学习很多有关SharePoint编程的知识-

  • 的JavaScript
  • ASP.NET
  • REST / O数据
  • .NET Framework
  • Windows Phone
  • 银光
  • Windows PowerShell

运行代码的设备

运行代码的设备可以是以下任意设备-

  • SharePoint场中的服务器。
  • 外部服务器,例如云中的服务器。
  • 客户端计算机和移动设备。

下表提供了针对不同API集的指南,这些API可用于选定的常见SharePoint扩展性项目列表。

S.No. API & Usage
1

.NET Framework client object model, Silverlight client object model, REST/OData endpoints

Create an ASP.NET web application that performs CRUD operations on SharePoint data or external data that is surfaced in SharePoint by a BCS external content type, but does not have to call SharePoint across a firewall.

2

REST/OData endpoints

Create a LAMP web application that performs CRUD operations on SharePoint data or external data that is surfaced in SharePoint by a BCS external content type.

Create an iOS or Android app that performs CRUD operations on SharePoint data.

3

Mobile client object model

Create a Windows Phone app that performs CRUD operations on SharePoint data.

4

Mobile client object model and the server object model

Create a Windows Phone app that uses the Microsoft Push Notification Service to alert the mobile device of events in SharePoint.

5

.NET Framework client object model

Create a .NET Framework application that performs CRUD operations on SharePoint data.

6

Silverlight client object model

Create a Silverlight application that performs CRUD operations on SharePoint data.

7

JavaScript client object model

Create an HTML/JavaScript application that performs CRUD operations on SharePoint data.

Create an Office Add-in that works with SharePoint

8

Server object model

Create a custom Windows PowerShell command.

Create a timer job.

Create an extension of Central Administration.

Create consistent branding across an entire SharePoint farm.

Create a custom Web Part, application page, or ASP.NET user control.