office web word 插件
office web word Addin
使用登录用户的凭据从 Office Web 插件获取 SharePoint 列表项的最佳方法是什么?
我们已经迁移到 Office 365,我不确定我是否必须在 AD 或 Office 365 上进行身份验证,Office 插件应用程序将部署在 SharePoint on Premise
我尝试过休息服务,但我不确定如何传递用户令牌以进行身份验证。
function GetSharePointListItems() {
$.ajax({
url: "weburl/_api/web/lists/getbytitle('listname')/Items?$select=Title,ParagraphText&$filter=ParagraphText isnotnull ",
type: "GET",
Authorization: {"Bearer " + accessToken},
headers: { "accept": "application/json;odata=verbose" },
success: function (data) {
if (data.d.results) {
OnSuccessSharePointData();
}
},
error: function (xhr) {
alert(xhr.status + ': ' + xhr.statusText);
OnErrorSharePointData();
}
});
任何想法
您的加载项 必须获得 SharePoint Online/Office 365 的授权。询问 "what's the best way" 是范围很广,所以这里有一些关于对 SP/O365 进行身份验证的起点:
- Understanding and Using the SharePoint 2013 REST Interface
- Authorize external services in your Office Add-in
(当您说您将在 SharePoint on Premise 上部署加载项时,我假设您的意思是您将在 SharePoint 公司目录中部署加载项清单。对吗?)
使用登录用户的凭据从 Office Web 插件获取 SharePoint 列表项的最佳方法是什么?
我们已经迁移到 Office 365,我不确定我是否必须在 AD 或 Office 365 上进行身份验证,Office 插件应用程序将部署在 SharePoint on Premise
我尝试过休息服务,但我不确定如何传递用户令牌以进行身份验证。
function GetSharePointListItems() {
$.ajax({
url: "weburl/_api/web/lists/getbytitle('listname')/Items?$select=Title,ParagraphText&$filter=ParagraphText isnotnull ",
type: "GET",
Authorization: {"Bearer " + accessToken},
headers: { "accept": "application/json;odata=verbose" },
success: function (data) {
if (data.d.results) {
OnSuccessSharePointData();
}
},
error: function (xhr) {
alert(xhr.status + ': ' + xhr.statusText);
OnErrorSharePointData();
}
});
任何想法
您的加载项 必须获得 SharePoint Online/Office 365 的授权。询问 "what's the best way" 是范围很广,所以这里有一些关于对 SP/O365 进行身份验证的起点:
- Understanding and Using the SharePoint 2013 REST Interface
- Authorize external services in your Office Add-in
(当您说您将在 SharePoint on Premise 上部署加载项时,我假设您的意思是您将在 SharePoint 公司目录中部署加载项清单。对吗?)