SlideShare une entreprise Scribd logo
1  sur  31
Client Side Object Model
(CSOM) - SharePoint 2013

      KUNAAL KAPOOR


            0
Welcome to SharePoint Saturday Houston
        Thank you for being a part of the
         4th Annual SharePoint Saturday
          for the greater Houston area!
• Please turn off all electronic devices or set them to vibrate.
• If you must take a phone call, please do so in the hall so as not
  to disturb others.
• Thanks to our Title Sponsor:




                                  1
Information
• Speaker presentation slides will be available at
  bit.ly/GoSPSHOU within a week

• The Houston SharePoint User Group will be
  having it’s next meeting Wednesday April 17th.
  Please join us at www.h-spug.org




                          2
About Me



KUNAAL KAPOOR
Vice President Delivery
BrightStarr

A SharePoint architect trying to connect business to
technology.
Believe in providing useful solutions to empower the users
as much as possible.
MCSD SharePoint 2010, MCSD ASP.NET 4.0
Contact Information



E-MAIL: Kunaal.Kapoor@BrightStarr.com
Twitter: @KunaalKapoor
Blog: http://geekswithblogs.net/kunaalkapoor/
Company Website: http://www.brightstarr.com/
Agenda

 What’s CSOM?
 What’s new with SharePoint 2013?
 REST, OData, OAuth
 CSOM – Tools and Libraries
 Questions & Feedback




*Session Duration: 1 hour (12:30 - 1:30 p.m.)
Agenda

What’s CSOM?
What’s new with SharePoint 2013?
REST, OData, OAuth
CSOM – Tools and Libraries
Questions & Feedback
What’s CSOM?
SharePoint has two frameworks for development:
     Server-side object model
     Used to run code on the server.
     Eg: WebParts, workflows, taxonomies and so on.

     Client-side object model (CSOM)
     Used to develop code that runs outside of
     the SharePoint server.
     Eg: Applications you have on your desktop, mobile etc.
What’s CSOM?
What’s CSOM?
Introduced in SharePoint 2010
Multiple implementations
Managed:
       .NET Framework
       & Silverlight
JavaScript
Agenda

What’s CSOM?
What’s new with SharePoint 2013?
REST, OData, OAuth
CSOM – Tools and Libraries
Questions & Feedback
CSOM - SharePoint 2013

Expanded significantly!

Increased coverage from CSOM in SharePoint
2010, Including:
Business Data
Search
User Profile & Feeds
Publishing
Taxonomy
Workflows

Minimal Download Strategy UX
Push for client side actions
CSOM - SharePoint 2013


Critical Part of the App Model.
     SharePoint apps cannot run any server-side
     code inside the SharePoint host environment.


Four permutations for writing code in
a SharePoint app:
     Client-side JavaScript that uses CSOM
     Client-side JavaScript that uses the REST API
     Server-side C# code that uses CSOM
     Server-side C# code that uses the REST API
CSOM - SharePoint 2013

SharePoint 2010                     SharePoint 2013




SharePoint 2010 doesn’t support     Client.svc service extended with
direct access to Client.svc         REST capabilities
Calls to the Client.svc should go   Client.svc accepts HTTP GET, PUT
through supported entry points      and POST requests
Supported entry points: .NET,       Implemented in accordance with
Silverlight & JavaScript            the OData Protocol
CSOM - SharePoint 2013
Agenda

What’s CSOM?
What’s new with SharePoint 2013?
REST, OData, OAuth
CSOM – APIs, Tools and Libraries
Questions & Feedback
REST, OData and OAuth

REST (Representational State Transfer) has a lot of
industry momentum.
It is a style of Software Architecture for distributed
systems.

For SharePoint 2013
      Nearly every API in the client object model
      has a corresponding REST endpoint.
REST, OData and OAuth

                           http://www.odata.org/


ODATA is the new data access API like ADO.

It standardizes data access APIs
Becoming really popular and used by Netflix, Azure
and other industry leaders
Supports formats like:
       Atom, JSON or plain XML
REST, Odata, OAuth


                               http://oauth.net

The OAuth is an open authorization framework.

It enables a application to obtain access to an
HTTP service.

It is meant to keep the authentication conflicts
to a minimum.
Agenda

What’s CSOM?
What’s new with SharePoint 2013?
REST, OData, OAuth
CSOM – Tools and Libraries
Questions & Feedback
CSOM –Tools & Libraries


JQuery
http://jquery.com

Fast, small, and feature-rich JavaScript library.
Easy-to-use API that works across a multitude of
browsers.
jQuery has changed the way that millions of
people write JavaScript

Library Size = 32KB (minified)
CSOM – Tools and Libraries


DataJS            http://datajs.codeplex.com
Cross-browser library for data driven applications.
Simplifies working with OData and JSON responses.
Library Size = 58KB (minified)

Knockout                http://knockoutjs.com
JS implementation of the MVVM pattern.
Declarative Bindings and Dependency Checking
Automatic UI refresh
Library Size = 40 KB (minified)
CSOM – Tools and Libraries

Visual Studio 2012
Developer tools include:
     Project Templates
     Item Templates
Designer & Tool Windows
Deployment & Debugging
CSOM – Tools and Libraries

Web Essentials 2012
   Visual Studio 2012 Extension in Online
   Gallery
   Additional IntelliSense for CSS3
   Warnings & Helpers for browser
   compatibility issues
   Selector IntelliSense for HTML
   elements, classes and IDs
CSOM – Tools and Libraries
Fiddler – Available free @ http://fiddler2.com




     HTTP debugging proxy
     Inspect and debug traffic from any client
     Tamper client requests and server responses
     Useful in debugging SharePoint: JavaScript/
     CSOM & REST based development
     Test the performance of your web sites & apps
CSOM – Tools and Libraries
Firebug – Available free @ http://getfirebug.com




HTTP debugging proxy
Inspect and debug traffic from any client
Tamper client requests and server responses
Useful in debugging SharePoint: JavaScript
CSOM & REST based development
Test the performance of your web sites & apps
Agenda

What’s CSOM?
What’s new with SharePoint 2013?
REST, OData, OAuth
CSOM – APIs, Tools and Libraries
Questions & Feedback
Resources & References

MSDN: http://blogs.msdn.com
CodePlex: http://codeplex.com
OAuth: http://oauth.net
OData: http://www.odata.org
Contact Information



E-MAIL: Kunaal.Kapoor@BrightStarr.com
Twitter: @KunaalKapoor
Blog: http://geekswithblogs.net/kunaalkapoor/
Company Website: http://www.brightstarr.com/
Please Leave Feedback During Q&A
If you leave session
feedback and
provide contact
information in the
survey, you will be
qualified for a book,
ebook or DVD
giveaway.

Scan the QR Code to
the right or go to
bit.ly/spshou42

                        29
Thanks to all our Sponsors!




            30

Contenu connexe

Tendances

Sviluppare App per Office 2013 e SharePoint 2013
Sviluppare App per Office 2013 e SharePoint 2013Sviluppare App per Office 2013 e SharePoint 2013
Sviluppare App per Office 2013 e SharePoint 2013
Giuseppe Marchi
 
Integrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio LightswitchIntegrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio Lightswitch
Rob Windsor
 
Intro to SharePoint Web Services
Intro to SharePoint Web ServicesIntro to SharePoint Web Services
Intro to SharePoint Web Services
Mark Rackley
 

Tendances (20)

SharePoint 2010 Client Object Model
SharePoint 2010 Client Object ModelSharePoint 2010 Client Object Model
SharePoint 2010 Client Object Model
 
SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePoint
 
Introduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIIntroduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST API
 
Developing a Provider Hosted SharePoint app
Developing a Provider Hosted SharePoint appDeveloping a Provider Hosted SharePoint app
Developing a Provider Hosted SharePoint app
 
Get started with building native mobile apps interacting with SharePoint
Get started with building native mobile apps interacting with SharePointGet started with building native mobile apps interacting with SharePoint
Get started with building native mobile apps interacting with SharePoint
 
Sviluppare App per Office 2013 e SharePoint 2013
Sviluppare App per Office 2013 e SharePoint 2013Sviluppare App per Office 2013 e SharePoint 2013
Sviluppare App per Office 2013 e SharePoint 2013
 
SharePoint 2013 REST and CSOM
SharePoint 2013 REST  and CSOMSharePoint 2013 REST  and CSOM
SharePoint 2013 REST and CSOM
 
Integrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio LightswitchIntegrating SharePoint 2010 and Visual Studio Lightswitch
Integrating SharePoint 2010 and Visual Studio Lightswitch
 
O365Con18 - Hybrid SharePoint Deep Dive - Thomas Vochten
O365Con18 - Hybrid SharePoint Deep Dive - Thomas VochtenO365Con18 - Hybrid SharePoint Deep Dive - Thomas Vochten
O365Con18 - Hybrid SharePoint Deep Dive - Thomas Vochten
 
SharePoint 2013 APIs
SharePoint 2013 APIsSharePoint 2013 APIs
SharePoint 2013 APIs
 
ECS19 - John White - Unlock SharePoint’s Reporting Secrets
ECS19 - John White - Unlock SharePoint’s Reporting SecretsECS19 - John White - Unlock SharePoint’s Reporting Secrets
ECS19 - John White - Unlock SharePoint’s Reporting Secrets
 
Designing for SharePoint Provider Hosted Apps
Designing for SharePoint Provider Hosted AppsDesigning for SharePoint Provider Hosted Apps
Designing for SharePoint Provider Hosted Apps
 
Share point 2013 - Javascript Object Model
Share point 2013 - Javascript Object ModelShare point 2013 - Javascript Object Model
Share point 2013 - Javascript Object Model
 
SharePoint Fest Chicago 2015 - Anatomy of configuring provider hosted add-in...
SharePoint Fest Chicago 2015  - Anatomy of configuring provider hosted add-in...SharePoint Fest Chicago 2015  - Anatomy of configuring provider hosted add-in...
SharePoint Fest Chicago 2015 - Anatomy of configuring provider hosted add-in...
 
Deep dive into SharePoint 2013 hosted apps - Chris OBrien
Deep dive into SharePoint 2013 hosted apps - Chris OBrienDeep dive into SharePoint 2013 hosted apps - Chris OBrien
Deep dive into SharePoint 2013 hosted apps - Chris OBrien
 
Intro to SharePoint Web Services
Intro to SharePoint Web ServicesIntro to SharePoint Web Services
Intro to SharePoint Web Services
 
[Vochten/Harbar] SharePoint Server On Premises & Hybrid PowerClass
[Vochten/Harbar] SharePoint Server On Premises & Hybrid PowerClass[Vochten/Harbar] SharePoint Server On Premises & Hybrid PowerClass
[Vochten/Harbar] SharePoint Server On Premises & Hybrid PowerClass
 
Developing SharePoint 2013 apps with Visual Studio 2012 - Microsoft TechDays ...
Developing SharePoint 2013 apps with Visual Studio 2012 - Microsoft TechDays ...Developing SharePoint 2013 apps with Visual Studio 2012 - Microsoft TechDays ...
Developing SharePoint 2013 apps with Visual Studio 2012 - Microsoft TechDays ...
 
Microsoft Flow best practices European Collaboration Summit 2018
Microsoft Flow best practices European Collaboration Summit 2018Microsoft Flow best practices European Collaboration Summit 2018
Microsoft Flow best practices European Collaboration Summit 2018
 
Introduction to the Client OM in SharePoint 2010
Introduction to the Client OM in SharePoint 2010Introduction to the Client OM in SharePoint 2010
Introduction to the Client OM in SharePoint 2010
 

En vedette (7)

LINQ to SharePoint
LINQ to SharePointLINQ to SharePoint
LINQ to SharePoint
 
Karine bosch andy-van_steenbergen-caml-spsbe12
Karine bosch andy-van_steenbergen-caml-spsbe12Karine bosch andy-van_steenbergen-caml-spsbe12
Karine bosch andy-van_steenbergen-caml-spsbe12
 
Social features in SharePoint 2013
Social features in SharePoint 2013Social features in SharePoint 2013
Social features in SharePoint 2013
 
The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery Guide
 
Biwug 25092012 sp2013_itpro_hans_jaspers
Biwug 25092012 sp2013_itpro_hans_jaspersBiwug 25092012 sp2013_itpro_hans_jaspers
Biwug 25092012 sp2013_itpro_hans_jaspers
 
Data Access Options in SharePoint 2010
Data Access Options in SharePoint 2010Data Access Options in SharePoint 2010
Data Access Options in SharePoint 2010
 
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechConDeep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
 

Similaire à CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston

Sharepoint conference - AP
Sharepoint conference - APSharepoint conference - AP
Sharepoint conference - AP
MIchael Carey
 

Similaire à CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston (20)

Rapid Web Development with Python for Absolute Beginners
Rapid Web Development with Python for Absolute BeginnersRapid Web Development with Python for Absolute Beginners
Rapid Web Development with Python for Absolute Beginners
 
Portable single page applications with AngularJS in SharePoint
Portable single page applications with AngularJS in SharePointPortable single page applications with AngularJS in SharePoint
Portable single page applications with AngularJS in SharePoint
 
Intro to SharePoint for Developers
Intro to SharePoint for DevelopersIntro to SharePoint for Developers
Intro to SharePoint for Developers
 
Using rest to create responsive html 5 share point intranets
Using rest to create responsive html 5 share point intranetsUsing rest to create responsive html 5 share point intranets
Using rest to create responsive html 5 share point intranets
 
W8/WP8 App Dev for SAP, Part 2: Microsoft OData Application Development
W8/WP8 App Dev for SAP, Part 2: Microsoft OData Application DevelopmentW8/WP8 App Dev for SAP, Part 2: Microsoft OData Application Development
W8/WP8 App Dev for SAP, Part 2: Microsoft OData Application Development
 
HTML5 in Plain English: What it means for SharePoint and Your Organization
HTML5 in Plain English: What it means for SharePoint and Your OrganizationHTML5 in Plain English: What it means for SharePoint and Your Organization
HTML5 in Plain English: What it means for SharePoint and Your Organization
 
Introduction To Open Web Protocols
Introduction To Open Web ProtocolsIntroduction To Open Web Protocols
Introduction To Open Web Protocols
 
Custom Development in SharePoint – What are my options now?
Custom Development in SharePoint – What are my options now?Custom Development in SharePoint – What are my options now?
Custom Development in SharePoint – What are my options now?
 
Developing Apps for SharePoint 2013
Developing Apps for SharePoint 2013Developing Apps for SharePoint 2013
Developing Apps for SharePoint 2013
 
[Luca/Van Campenhoudt] Microsoft Flow Beyone the Limits: Tips, Pitfalls, Patt...
[Luca/Van Campenhoudt] Microsoft Flow Beyone the Limits: Tips, Pitfalls, Patt...[Luca/Van Campenhoudt] Microsoft Flow Beyone the Limits: Tips, Pitfalls, Patt...
[Luca/Van Campenhoudt] Microsoft Flow Beyone the Limits: Tips, Pitfalls, Patt...
 
Real-World, Open Source, End-to-End JavaScript in IoT
Real-World, Open Source, End-to-End JavaScript in IoTReal-World, Open Source, End-to-End JavaScript in IoT
Real-World, Open Source, End-to-End JavaScript in IoT
 
What's new in SharePoint Server 2013 (End user - Admin – Developer)
What's new in SharePoint Server 2013 (End user - Admin – Developer)What's new in SharePoint Server 2013 (End user - Admin – Developer)
What's new in SharePoint Server 2013 (End user - Admin – Developer)
 
Microsoft Flow - SharePoint Saturday Paris 2017
Microsoft Flow - SharePoint Saturday Paris 2017Microsoft Flow - SharePoint Saturday Paris 2017
Microsoft Flow - SharePoint Saturday Paris 2017
 
B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...
B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...
B5 - Introduction à Microsoft Flow - Isabelle Van Campenhoudt, Sabrine chouk,...
 
Come riprogettare le attuali farm solution di share point con il nuovo modell...
Come riprogettare le attuali farm solution di share point con il nuovo modell...Come riprogettare le attuali farm solution di share point con il nuovo modell...
Come riprogettare le attuali farm solution di share point con il nuovo modell...
 
Inside the mind of a SharePoint Solutions Architect
Inside the mind of a SharePoint Solutions ArchitectInside the mind of a SharePoint Solutions Architect
Inside the mind of a SharePoint Solutions Architect
 
What's new in sharepoint 2016
What's new in sharepoint 2016What's new in sharepoint 2016
What's new in sharepoint 2016
 
Sharepoint conference - AP
Sharepoint conference - APSharepoint conference - AP
Sharepoint conference - AP
 
Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...
Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...
Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...
 
Cics Web 2.0 With Atom Feeds And Php
Cics Web 2.0 With Atom Feeds And PhpCics Web 2.0 With Atom Feeds And Php
Cics Web 2.0 With Atom Feeds And Php
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston

  • 1. Client Side Object Model (CSOM) - SharePoint 2013 KUNAAL KAPOOR 0
  • 2. Welcome to SharePoint Saturday Houston Thank you for being a part of the 4th Annual SharePoint Saturday for the greater Houston area! • Please turn off all electronic devices or set them to vibrate. • If you must take a phone call, please do so in the hall so as not to disturb others. • Thanks to our Title Sponsor: 1
  • 3. Information • Speaker presentation slides will be available at bit.ly/GoSPSHOU within a week • The Houston SharePoint User Group will be having it’s next meeting Wednesday April 17th. Please join us at www.h-spug.org 2
  • 4. About Me KUNAAL KAPOOR Vice President Delivery BrightStarr A SharePoint architect trying to connect business to technology. Believe in providing useful solutions to empower the users as much as possible. MCSD SharePoint 2010, MCSD ASP.NET 4.0
  • 5. Contact Information E-MAIL: Kunaal.Kapoor@BrightStarr.com Twitter: @KunaalKapoor Blog: http://geekswithblogs.net/kunaalkapoor/ Company Website: http://www.brightstarr.com/
  • 6. Agenda What’s CSOM? What’s new with SharePoint 2013? REST, OData, OAuth CSOM – Tools and Libraries Questions & Feedback *Session Duration: 1 hour (12:30 - 1:30 p.m.)
  • 7. Agenda What’s CSOM? What’s new with SharePoint 2013? REST, OData, OAuth CSOM – Tools and Libraries Questions & Feedback
  • 8. What’s CSOM? SharePoint has two frameworks for development: Server-side object model Used to run code on the server. Eg: WebParts, workflows, taxonomies and so on. Client-side object model (CSOM) Used to develop code that runs outside of the SharePoint server. Eg: Applications you have on your desktop, mobile etc.
  • 10. What’s CSOM? Introduced in SharePoint 2010 Multiple implementations Managed: .NET Framework & Silverlight JavaScript
  • 11. Agenda What’s CSOM? What’s new with SharePoint 2013? REST, OData, OAuth CSOM – Tools and Libraries Questions & Feedback
  • 12. CSOM - SharePoint 2013 Expanded significantly! Increased coverage from CSOM in SharePoint 2010, Including: Business Data Search User Profile & Feeds Publishing Taxonomy Workflows Minimal Download Strategy UX Push for client side actions
  • 13. CSOM - SharePoint 2013 Critical Part of the App Model. SharePoint apps cannot run any server-side code inside the SharePoint host environment. Four permutations for writing code in a SharePoint app: Client-side JavaScript that uses CSOM Client-side JavaScript that uses the REST API Server-side C# code that uses CSOM Server-side C# code that uses the REST API
  • 14. CSOM - SharePoint 2013 SharePoint 2010 SharePoint 2013 SharePoint 2010 doesn’t support Client.svc service extended with direct access to Client.svc REST capabilities Calls to the Client.svc should go Client.svc accepts HTTP GET, PUT through supported entry points and POST requests Supported entry points: .NET, Implemented in accordance with Silverlight & JavaScript the OData Protocol
  • 16. Agenda What’s CSOM? What’s new with SharePoint 2013? REST, OData, OAuth CSOM – APIs, Tools and Libraries Questions & Feedback
  • 17. REST, OData and OAuth REST (Representational State Transfer) has a lot of industry momentum. It is a style of Software Architecture for distributed systems. For SharePoint 2013 Nearly every API in the client object model has a corresponding REST endpoint.
  • 18. REST, OData and OAuth http://www.odata.org/ ODATA is the new data access API like ADO. It standardizes data access APIs Becoming really popular and used by Netflix, Azure and other industry leaders Supports formats like: Atom, JSON or plain XML
  • 19. REST, Odata, OAuth http://oauth.net The OAuth is an open authorization framework. It enables a application to obtain access to an HTTP service. It is meant to keep the authentication conflicts to a minimum.
  • 20. Agenda What’s CSOM? What’s new with SharePoint 2013? REST, OData, OAuth CSOM – Tools and Libraries Questions & Feedback
  • 21. CSOM –Tools & Libraries JQuery http://jquery.com Fast, small, and feature-rich JavaScript library. Easy-to-use API that works across a multitude of browsers. jQuery has changed the way that millions of people write JavaScript Library Size = 32KB (minified)
  • 22. CSOM – Tools and Libraries DataJS http://datajs.codeplex.com Cross-browser library for data driven applications. Simplifies working with OData and JSON responses. Library Size = 58KB (minified) Knockout http://knockoutjs.com JS implementation of the MVVM pattern. Declarative Bindings and Dependency Checking Automatic UI refresh Library Size = 40 KB (minified)
  • 23. CSOM – Tools and Libraries Visual Studio 2012 Developer tools include: Project Templates Item Templates Designer & Tool Windows Deployment & Debugging
  • 24. CSOM – Tools and Libraries Web Essentials 2012 Visual Studio 2012 Extension in Online Gallery Additional IntelliSense for CSS3 Warnings & Helpers for browser compatibility issues Selector IntelliSense for HTML elements, classes and IDs
  • 25. CSOM – Tools and Libraries Fiddler – Available free @ http://fiddler2.com HTTP debugging proxy Inspect and debug traffic from any client Tamper client requests and server responses Useful in debugging SharePoint: JavaScript/ CSOM & REST based development Test the performance of your web sites & apps
  • 26. CSOM – Tools and Libraries Firebug – Available free @ http://getfirebug.com HTTP debugging proxy Inspect and debug traffic from any client Tamper client requests and server responses Useful in debugging SharePoint: JavaScript CSOM & REST based development Test the performance of your web sites & apps
  • 27. Agenda What’s CSOM? What’s new with SharePoint 2013? REST, OData, OAuth CSOM – APIs, Tools and Libraries Questions & Feedback
  • 28. Resources & References MSDN: http://blogs.msdn.com CodePlex: http://codeplex.com OAuth: http://oauth.net OData: http://www.odata.org
  • 29. Contact Information E-MAIL: Kunaal.Kapoor@BrightStarr.com Twitter: @KunaalKapoor Blog: http://geekswithblogs.net/kunaalkapoor/ Company Website: http://www.brightstarr.com/
  • 30. Please Leave Feedback During Q&A If you leave session feedback and provide contact information in the survey, you will be qualified for a book, ebook or DVD giveaway. Scan the QR Code to the right or go to bit.ly/spshou42 29
  • 31. Thanks to all our Sponsors! 30