View source: R/download_course_file.R
download_course_file | R Documentation |
This function downloads a file from a specified URL and saves it locally.
download_course_file(canvas, file_url, download_path)
canvas |
An object containing the Canvas API key and base URL, obtained through the |
file_url |
The URL of the file to download. |
download_path |
The path where the file should be downloaded. |
The path of the downloaded file.
## Not run:
# Download a file from a given URL
canvas <- canvas_authenticate(api_key, base_url)
file_url <- "https://example.com/file.pdf"
download_path <- "path/to/save/file.pdf"
file_path <- download_course_file(canvas, file_url, download_path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.