To work, it needs a project id.

add_task_in_project(
  project_id,
  task,
  try_again = 3,
  time_try_again = 3,
  verbose = TRUE,
  responsible = NULL,
  token = get_todoist_api_token(),
  exiting_tasks = get_tasks(token = token)
)

Arguments

project_id

id of a project

task

a task

try_again

start again the request

time_try_again

number of tries

verbose

make it talk

responsible

add people in project with email. To know user email, use get_users.

token

token

exiting_tasks

list of tasks already in the project

Value

project id

Examples

if (FALSE) { add_project("my_proj") %>% add_task_in_project("Add tasks") }