目标:将sharepoint网站对接Office 365

最直接的API:How to: Add Office 365 APIs to a Visual Studio project

http://msdn.microsoft.com/en-us/library/office/dn605899(v=office.15).aspx ,但目前限定为win8 app或web application。不能用于service,因此放弃。

继续研究:Authentication with SharePoint Online and the Client Side Object Model http://blogs.msdn.com/b/cjohnson/archive/2011/05/03/authentication-with-sharepoint-online-and-the-client-side-object-model.aspx ,但这种方式需要打开一个页面验证身份后,读取cookie来操作。对于service,读取cookie存在权限问题,所以再次放弃。

继续研究:

SharePoint Online for Office 365 Developer Guide http://msdn.microsoft.com/zh-cn/library/hh147180.aspx

得到方案 the SharePoint 2013 REST Interface:

Understanding and Using the SharePoint 2013 REST Interface http://msdn.microsoft.com/en-us/magazine/dn198245.aspx

Tips and FAQ: OAuth and remote apps for SharePoint  http://msdn.microsoft.com/en-us/library/fp179932.aspx

Guidelines for registering apps for SharePoint 2013  http://msdn.microsoft.com/en-us/library/jj687469%28v=office.15%29.aspx

the sample: SharePoint 2013: Perform basic data access operations by using REST in apps  http://code.msdn.microsoft.com/SharePoint-2013-Perform-335d925b

create a App from our site()注册(在构建远程应用程序之前,您必须生成应用程序 ID、应用程序密钥等。生成并创建这些值)
https://microsoft.sharepoint.com/teams/******/_layouts/15/appregnew.aspx
授权(可以查找已注册应用程序的应用程序注册信息)
https://microsoft.sharepoint.com/teams/*******/_layouts/15/appinv.aspx

格式如下:

<AppPermissionRequests AllowAppOnlyPolicy="true">
    <AppPermissionRequest Scope="https://microsoft.sharepoint.com/teams/******" Right="FullControl"/>
</AppPermissionRequests>
从以下页面中检索应用程序主体的列表:
https://microsoft.sharepoint.com/teams/******/_layouts/15/appprincipals.aspx

Permission Request XML :

App authorization policy types in SharePoint 2013  http://msdn.microsoft.com/en-us/library/fp179892%28v=office.15%29.aspx and

App permissions in SharePoint 2013  http://msdn.microsoft.com/en-us/library/fp142383%28v=office.15%29.aspx

这里讲得挺详细:SharePoint 2013 中需要即时访问权限的应用程序的 OAuth 身份验证和授权流程(高级主题)http://msdn.microsoft.com/zh-cn/library/jj687470%28v=office.15%29.aspx

SharePoint 开发小结的更多相关文章

  1. [转]SharePoint开发中可能用到的各种Context(上下文)

    SharePoint是一个B/S结构的产品,所以在开发过程中会使用到各种各样的上下文(Context)信息,借此机会来总结一下.特别是Javascript的Ctx非常实用,这里记录一下! 一.Http ...

  2. 转载 SharePoint开发部署WSP解决方案包

    转载原出处: http://642197992.blog.51cto.com/319331/1582731 注:本文所讲内容以SharePoint2013版本为例,开发工具以VS2013为基础.历史版 ...

  3. 步步为营 SharePoint 开发学习笔记系列总结

    转:http://www.cnblogs.com/springyangwc/archive/2011/08/03/2126763.html 概要 为时20多天的sharepoint开发学习笔记系列终于 ...

  4. SharePoint开发

    做SharePoint开发有时候是一件比较痛苦的事情,毕竟庞大的框架总是笨重的~~ 往往如果采取传统的方式开发SharePoint的话,更改一个代码需要有以下操作: 1)更改代码 2)VS编译——&g ...

  5. vue开发小结(下)

    前言 继前几天总结了vue开发小结(上)后,发现还有很多的点没有能列举出来,于是还是打算新建一个下篇,再补充一些vue开发中需要注意的细节,确实还是都是细节的问题,我只是在这里强调下,希望对大家有帮助 ...

  6. Visual Studio 中的 Office 和 SharePoint 开发

    MSDN Library 开发工具和语言  Visual Studio 中的 Office 和 SharePoint 开发 https://msdn.microsoft.com/zh-cn/libra ...

  7. SharePoint开发中可能用到的各种Context(上下文)

    转载: http://www.cnblogs.com/erucy/archive/2012/08/25/2655600.html 电脑正在以无比慢的速度从微软网站上安装Office Component ...

  8. pdfjs viewer 开发小结

    此文已由作者吴家联授权网易云社区发布. 欢迎访问网易云社区,了解更多网易技术产品运营经验. 1. pdfjs库简介 PDF.js 是由Mozilla 主导推出的可以将PDF文件转换为H5页面进行展示的 ...

  9. Android 即时通讯开发小结(二)

    <Android 即时通讯开发小结>基于IM Andriod 开发的各种常见问题,结合网易云信即时通讯技术的实践,对IM 开发做一个全面的总结. 相关推荐阅读:. Android 即时通讯 ...

随机推荐

  1. oracle授予调用存储过程权限

    参考 https://blog.csdn.net/h254532693/article/details/45364317 grant execute on PROCEDURENAME to USERN ...

  2. artTemplate/template.js模板将时间格式化为正常的日期

    网上提供的方法用不了 自己琢磨的 注意:ajax的异步方式必须设置成true才行,false不起作用.async: true: <script> function timestamp (v ...

  3. FileInputStream.FileOutputStream执行图片复制

    /** * 需求:拷贝一个图片 * 思路: * 1.创建一个字符输入流和图片相关联. * 2.用字节写入流对创建图片文件,用于存储到图片数据. * 3.通过循环续写,完成数据的存储. * 4.关闭资源 ...

  4. Python+Selenium学习--下拉框处理

    场景 下拉框也是web 页面上非常常见的功能,webdriver 对于一般的下拉框处理起来也相当简单,要想定位下拉框中的内容,首先需要定位到下拉框:这样的二次定位 下拉框一般有以下两种方式: 鼠标移上 ...

  5. Cisco ASR1002-X告警处理

    客户反馈其机房的ASR100X告警,拍照如下图: 处理步骤: 查看日志未发现异常 查看CPU/内存/风扇未发现异常 3.清除告警#clear facility alarm依旧告警 4.shutdown ...

  6. JavaScript各种继承方式(二):借用构造函数继承(constructor stealing)

    一 原理 在子类的构造函数中,通过call ( ) 或 apply ( ) 的形式,调用父类的构造函数来实现继承. function Fruit(name){ this.name = name; th ...

  7. 【Linux 线程】常用线程函数复习《二》

    1.函数pthread_join /************************************************************************* > Fil ...

  8. 【校招面试 之 C/C++】第32题 C++ 11新特性(三)之for关键字

    1.for循环的一般写法: int arr[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; for (int i = 0; i < 10; i++) cout ...

  9. gridview 显示数据库中的超链接

    gridview默认情况下,数据库中存储的超链接,是不会显示的.它会直接把超链接字符显示出来. 例如:选定数据源后,gridview自动生成的列是这样的: <asp:BoundField Dat ...

  10. [leetcode]449. Serialize and Deserialize BST序列化与反序列化BST

    Serialization is the process of converting a data structure or object into a sequence of bits so tha ...