sp_connection: Establish a connection to SharePoint

View source: R/sharepoint_driver.R

sp_connectionR Documentation

Establish a connection to SharePoint

Description

This method allows to establish and save a connection to SharePoint online or a SharePoint server. The connection properties are therefore saved in a connection object to be later used for the request

Usage

sp_connection(Address, Username = NULL, Password = NULL,
  credentialFile = NULL, Office365 = T)

Arguments

Address

Address of the SharePoint instance to be contacted. For example https://example.sharepoint.com

Username

The username to use for the authentication. If not given, a credential file must be provided. For example: john.doe@example.com

Password

The password to use for the authentication. If not given, a credential file must be provided.

credentialFile

If no username or password is provided, this file will be used for reading the credentials from. The file must be YAML formatted, containing the keys Username and Password.

Office365

True (default) if a connection to SharePoint online shall be established, False if a connection to SharePoint server shall be established.

Examples

sp_connection("https://your.sharepoint.server/subpage1/", "YourUsername", "YourPassword", Office365 = F)
sp_connection("https://yourdomain.sharepoint.com", "YourUsername", "YourPassword", Office365 = T)

LukasK13/sharepointr documentation built on Jan. 9, 2023, 12:22 p.m.