Connecting to REST API
SharePoint REST API is supported both on Sharepoint OnPremise and on Sharepoint Online. To connect using the REST API set Schema to REST.
The property SharePointEdition may be used to define the edition of Sharepoint.
Sharepoint Online
SharePoint Online uses OAuth standard to authenticate. See the
Using OAuth Authentication for more info.
Sharepoint OnPremise
See the Authenticating to SharePoint On Premises section in Establishing a Connection for more info.