Learn R Programming

rtodoist (version 0.4.0)

upload_file: Upload a file

Description

Upload a file

Usage

upload_file(
  file_path,
  file_name = basename(file_path),
  verbose = TRUE,
  token = get_todoist_api_token()
)

Value

upload object with file_url

Arguments

file_path

path to the file to upload

file_name

name for the uploaded file (defaults to basename of file_path)

verbose

boolean that make the function verbose

token

todoist API token

Examples

Run this code
if (FALSE) {
upload <- upload_file("document.pdf")
# Use upload$file_url in a comment
}

Run the code above in your browser using DataLab