#' Get SharePoint token
#'
#' @description A token is required whenever using the `sharepoint_get` or `sharepoint_put` function
#'
#' @return a sharepoint token
#' @export
#'
#' @examples
#' \dontrun{
#' token <- sharepoint_token()
#' }
sharepoint_token <- function() {
gr <- AzureGraph::create_graph_login()
gr$get_user()$token
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.