View source: R/sharepoint_driver.R
sp_request | R Documentation |
Send a request via GET or POST to the SharePoint RESTful API
sp_request(con, request, verb = "GET", json = T, body = NULL)
con |
A SharePoint connection returned by sp_connection() |
request |
A request URL. Can be either a full URL or the last part of the request URL which will be concatenated to the API-URL of the SharePoint connection |
verb |
Method to use for the request. Either GET (default) or POST. |
json |
retreive data using JSON formatting |
body |
Body of the request (only for POST). |
The response as list
sp_con = sp_connection("https://yourdomain.sharepoint.com", "YourUsername", "YourPassword", Office365 = T) lists = sp_request(sp_con, "lists", verb = "GET", json = T, body = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.