SharePoint REST API
Because REST services are much simpler than other frameworks for communicating with web applications, they have gained a great deal of traction over the past half-decade or so. This is no exception in SharePoint, and the SharePoint REST API which began with SharePoint 2010 has increased its capabilities greatly over time.
While REST services may be more familiar and useful to C# or JavaScript programmers, it is not impossible to connect to them from PowerShell. Here, we'll show you a simple example of how this can be done.
For brevity, the code here builds on the previous CSOM example. You'll need to ensure that $SpoCredential and $WebUrl have valid values.
We start by forming a REST URL. These follow a standard convention, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access