SharePoint 开发小结
目标:将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 开发小结的更多相关文章
- [转]SharePoint开发中可能用到的各种Context(上下文)
SharePoint是一个B/S结构的产品,所以在开发过程中会使用到各种各样的上下文(Context)信息,借此机会来总结一下.特别是Javascript的Ctx非常实用,这里记录一下! 一.Http ...
- 转载 SharePoint开发部署WSP解决方案包
转载原出处: http://642197992.blog.51cto.com/319331/1582731 注:本文所讲内容以SharePoint2013版本为例,开发工具以VS2013为基础.历史版 ...
- 步步为营 SharePoint 开发学习笔记系列总结
转:http://www.cnblogs.com/springyangwc/archive/2011/08/03/2126763.html 概要 为时20多天的sharepoint开发学习笔记系列终于 ...
- SharePoint开发
做SharePoint开发有时候是一件比较痛苦的事情,毕竟庞大的框架总是笨重的~~ 往往如果采取传统的方式开发SharePoint的话,更改一个代码需要有以下操作: 1)更改代码 2)VS编译——&g ...
- vue开发小结(下)
前言 继前几天总结了vue开发小结(上)后,发现还有很多的点没有能列举出来,于是还是打算新建一个下篇,再补充一些vue开发中需要注意的细节,确实还是都是细节的问题,我只是在这里强调下,希望对大家有帮助 ...
- Visual Studio 中的 Office 和 SharePoint 开发
MSDN Library 开发工具和语言 Visual Studio 中的 Office 和 SharePoint 开发 https://msdn.microsoft.com/zh-cn/libra ...
- SharePoint开发中可能用到的各种Context(上下文)
转载: http://www.cnblogs.com/erucy/archive/2012/08/25/2655600.html 电脑正在以无比慢的速度从微软网站上安装Office Component ...
- pdfjs viewer 开发小结
此文已由作者吴家联授权网易云社区发布. 欢迎访问网易云社区,了解更多网易技术产品运营经验. 1. pdfjs库简介 PDF.js 是由Mozilla 主导推出的可以将PDF文件转换为H5页面进行展示的 ...
- Android 即时通讯开发小结(二)
<Android 即时通讯开发小结>基于IM Andriod 开发的各种常见问题,结合网易云信即时通讯技术的实践,对IM 开发做一个全面的总结. 相关推荐阅读:. Android 即时通讯 ...
随机推荐
- 如何搭建python+selenium2+eclipse的环境
搭建python和selenium2的环境(windows) 1.下载并安装python(我用的是2.7的版本) 可以去python官网下载安装:http://www.python.org/getit ...
- jdk1.8的项目在jdk1.7的环境下运行
- jquery 动态数字滚动
1.引入jQuery <script src="js/jquery.min.js"></script>2.html <div id="cou ...
- for 与 for in
在JavaScript中提供了两种方式迭代对象: (1)for 循环: (2)for..in循环: 使用for循环进行迭代数组对象,想必大家都已经司空见惯了.但是,使用for.. in循环时,大家可要 ...
- 包含min函数的栈(python)
题目描述 定义栈的数据结构,请在该类型中实现一个能够得到栈中所含最小元素的min函数(时间复杂度应为O(1)). # -*- coding:utf-8 -*- class Solution: #入栈时 ...
- ActiveMQ之整合spring
ActiveMQ可以轻松的与Spring进行整合,Spring提供了一系列的接口类,非常的好用! 比如异步消息数据.异步发送邮件.异步消息查询等 <dependency> <grou ...
- PHP简单工厂模式、工厂方法模式和抽象工厂模式比较
PHP工厂模式概念:工厂模式是一种类,它具有为您创建对象的某些方法.您可以使用工厂类创建对象,而不直接使用 new.这样,如果您想要更改所创建的对象类型,只需更改该工厂即可.使用该工厂的所有代码会自动 ...
- 好文:javascript中的四种循环
https://juejin.im/entry/5a1654e951882554b8373622?utm_medium=hao.caibaojian.com&utm_source=hao.ca ...
- [leetcode]304. Range Sum Query 2D - Immutable二维区间求和 - 不变
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper lef ...
- vue的通讯与传递props emit (简单的弹框组件)
props父把信息传递给子组件 1父组件 <template> <div class="hello"> <div id="app-3&quo ...