Learn R Programming

rtodoist (version 0.4.0)

add_label: Add a new label

Description

Add a new label

Usage

add_label(
  name,
  color = NULL,
  is_favorite = FALSE,
  verbose = TRUE,
  token = get_todoist_api_token()
)

Value

id of the new label

Arguments

name

name of the label

color

color of the label

is_favorite

boolean to mark as favorite

verbose

boolean that make the function verbose

token

todoist API token

Examples

Run this code
if (FALSE) {
add_label("urgent")
add_label("work", color = "red")
}

Run the code above in your browser using DataLab