CSOM_AND_REST

Report
Interacting with SharePoint
using the CSOM and REST API
Presented by Eric Smith
2.1.2014
Special Thanks to our Platinum Sponsor
…and our Gold Sponsor
Who am I?
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Intro to CSOM and REST API
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
SharePoint API
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
CSOM
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Three Implementations
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
CSOM Coverage 2010
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
CSOM Coverage 2013
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Communication With SharePoint
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Retrieving Resources Using Load
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Retrieving Resources Using Load (cont.)
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Demo Using Load
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Retrieving Resources Using LoadQuery
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Demo using LoadQuery
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
REST API
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Why REST when we have CSOM?
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
REST API History
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
REST API Coverage
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Retrieving Data using REST API (Managed)
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
How Authentication Works
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
REST API Managed Demo
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
OData URL
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Odata Examples
http://services.odata.org/Northwind/Northwind.svc/
http://services.odata.org/Northwind/Northwind.svc/$metadata
http://services.odata.org/Northwind/Northwind.svc/Customers
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')/Address
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')/Address/$value
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')/$links/Orders
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')/Orders(10643)/Order_Details
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Odata Query support
http://services.odata.org/Northwind/Northwind.svc/Customers?$filter=Count
ry eq 'USA'&$orderby=ContactName&$top=3
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')/$links
/Orders
http://services.odata.org/Northwind/Northwind.svc/Customers('LETSS')?$exp
and=Orders&$format=JSON
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
SharePoint Examples
 _api => _vti_bin/client.svc
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Working with Documents and Libraries
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Great Resources / References
http://msdn.microsoft.com/en-us/library/office/dn268594.aspx
Choose the right API set in SharePoint 2013
How to: Complete basic operations using SharePoint 2013 client library code
How to: Complete basic operations using JavaScript library code in SharePoint
2013
How to: Access SharePoint 2013 data from remote apps using the cross-domain
library
Programming using the SharePoint 2013 REST service
How to: Complete basic operations using SharePoint 2013 REST endpoints
Host webs, app webs, and SharePoint components in SharePoint 2013
http://www.odata.org/
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.
Wrap up
http://sdrv.ms/LzRDZd
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July 2012.

similar documents