Introduction
This is a short guide on how to migrate from the older SharePoint Online REST API — which includes OneDrive for Business — to the new Graph API. It covers operations related to storage, such as files and folders. Migrating isn’t an easy task due to partial or missing documentation for both APIs and sometimes involves trial and error to figure out what works and what doesn’t.
- We’ll first take a look at how to retrieve SharePoint Online (SPO) and OneDrive for Business (ODB) file and folder metadata from the Graph API using SPO REST API identifiers.
- We’ll then show how to achieve the same using the SPO REST API
v2.0
, that seems, at first glance, identical to the Graph API, but comes with it’s own hurdles.
Code Included
This post includes code samples but doesn’t cover how to authenticate a client to use for the API requests. Please refer to Microsoft’s documentation for more information on how to accomplish this.
from DZone.com Feed https://ift.tt/2VdI32f
No comments:
Post a Comment