Chapter 2. Client-side Programming

The Microsoft SharePoint 2013 app model does not support running server-side code within the SharePoint host environment. As a result, SharePoint developers cannot utilize the server-side API in apps. Instead, app developers must use the client-side API, which consists of the Client-Side Object Model (CSOM) and the Representational State Transfer (REST) API.

When developing apps, CSOM and the REST API can be programmed by using either C# or JavaScript. C# is used in remote webs associated with provider-hosted or autohosted apps. JavaScript can run in the browser in SharePoint-hosted, provider-hosted, or autohosted apps. The combination of languages and APIs results in the app designs outlined in Table 2-1.

Table 2-1. App ...

Get Microsoft® SharePoint® 2013 App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.