#' Show a single content export
#'
#' List content exports
#' @param ID Integer of the account ID to find sub-accounts for
#' @param exportID Integer of the specific content export to return
#' @param type String of type - course, account, group, or user
#' @param server Test, beta, prodcution, OR alternative name in R.environ OR url of server
#' @param ... Optional page options to pass to processRequest
#' @export
getContentExport <- function(ID, exportID, type = "course", server = "test", ...) {
url <- loadURL(server)
url$path <- "api/v1/TYPE/ID/content_exports/EXPORTID"
if(type == "course"){
url$path <- sub("TYPE", "courses", url$path)
}
if(type == "group"){
url$path <- sub("TYPE", "groups", url$path)
}
if(type == "user"){
url$path <- sub("TYPE", "users", url$path)
}
url$path <- sub("ID", ID, url$path)
url$path <- sub("EXPORTID", exportID, url$path)
##Pass the url to the request processor
results <- processRequest(url, ...)
return(results)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.