简体   繁体   English

是否可以为SharePoint创建API?

[英]Is it possible to create an API for SharePoint?

i could not find any idea of how to implement API over the SharePoint(MOSS) framework. 我找不到有关如何通过SharePoint(MOSS)框架实现API的任何想法。 Could anyone give me a tip please? 有人可以给我小费吗?

What i want to do is create a client application to communicate with the SharePoint. 我想做的是创建一个客户端应用程序以与SharePoint通信。 wanting to implement something like following. 想要实现类似以下的内容。

  • Client send post request to API implemented on SharePoint, API receive a request and do the authentication and create a login cookie. 客户端向SharePoint上实现的API发送发布请求,API接收请求并进行身份验证并创建登录cookie。
  • Client keep communicating with API(with the login cookie), request necessary information and API returns it. 客户端继续与API(带有登录cookie)进行通信,请求必要的信息,然后API返回它。

I could not find anyway to hook a program... Is there anyway to hook a program or implement own authentication mechanism before SharePoint's own authentication is called? 无论如何,我都找不到钩子程序...在调用SharePoint自己的身份验证之前,是否有钩子程序或实现自己的身份验证机制?

Any alternative approach will be grateful. 任何替代方法将不胜感激。 Thank you in advance. 先感谢您。

Taiga 大雅

It sounds like you need the Web Services that ship as part of SharePoint. 听起来您需要作为SharePoint一部分提供的Web服务。 There is no need to re-invent the wheel by creating your own API. 无需通过创建自己的API来重新发明轮子。

If your own application runs on a machine with a local SharePoint installation then you can program against the SharePoint Object Model directly. 如果您自己的应用程序在安装了本地SharePoint的计算机上运行,​​则可以直接针对SharePoint对象模型进行编程。 Otherwise use the Web Services interface . 否则,请使用Web服务界面

More on Google . 有关Google的更多信息

Here you find a fluent API for the SharePoint. 在这里,您可以找到SharePoint的流畅API。 FluentSP implements a modern fluent interface around the classic SharePoint 2010 API: http://www.parago.de/2011/09/fluentsp-the-fluent-sharepoint-api/ FluentSP围绕经典的SharePoint 2010 API实现了现代的fluent界面: http : //www.parago.de/2011/09/fluentsp-the-fluent-sharepoint-api/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM