Sharepoint Hosted App Challenges

Download Report

Transcript Sharepoint Hosted App Challenges

Marat Bakirov
Readify
2
3
Browser Host
Web Server Host
APP
Client APIs
Server APIs
SharePoint
& Exchange
Office
Client
Server
Manifest
5
Manifest
6
App Hosting
Cloud-hosted
apps
Get remote events
from SharePoint
Use CSOM/REST +
OAuth
Provider-hosted App SharePoint
“Bring your own server
hosting infrastructure”
Autohosted App SharePoint
Windows Azure + SQL Azure
provisioned automatically as
apps are installed
SharePoint-Hosted App
Reuse web elements (lists, out-ofbox web parts)
Client side technologies
7
Web
Your Hosted
Site
Azure
Web
Host
web
App Web
(from WSP)
Full page
Implement complete app experiences
to satisfy business scenarios
Parts
Create app parts that can interact
with the SharePoint experience
UI Command extensions
Add new commands to the ribbon and
item menus
8
Host
web
https:// contoso.sharepoint.com/site/
App
web
10
https://contoso-appUID.sharepoint.com/site/app/
JavaScript object model
ctx.load(ctx.get_web().get_title());
ctx.executeQueryAsync();
REST/OData
http://contoso-appUID.spo.com/site/app/_api/web/Title
_api/web/lists
_api/web/lists/getByTitle('Documents')
_api/social.feed/my/news
_api/SP.UserProfiles.PeopleManager/getMyProperties()
_api/search/query?Querytext='Marketing'
To access artefacts outside of the appweb:
1. Request permission to the scope you want to
access
2. Make your CSOM request using the right client
context.
var ctx = new SP.ClientContext(appWebUrl);
var appContextSite = new SP.AppContextSite(ctx, hostWebUrl);
ctx.Load(appContextSite.get_web());
14
17
AllowAppOnlyPolicy
19
23
24
26
27
http://channel9.msdn.com/Events/TechEd/Australia/2013
http://www.microsoftvirtualacademy.com/
http://technet.microsoft.com/en-au/
http://msdn.microsoft.com/en-au/