The first step is to retrieve a token.
Open todoist website to find it :
library(todoist) todoist::open_todoist_website_profile() token <- "YOURTOKEN" # copied and pasted from website
We use {keyring} features to do it.
set_todoist_api_token(token)
Don’t forget to store the result to reuse the identifier of the new project.
id_proj <- add_project(project_name = "test",verbose = TRUE)
id_proj %>% add_task_in_project("my_tasks")
id_proj %>% add_users_in_project(list_of_users = "your@mail.fr")
add_project(project_name = "test",verbose = TRUE) %>% add_tasks_in_project(tasks_list = list("First task", "Second task") ) %>% add_responsible_to_task("First task", add_responsible = "jean@mail.fr")
At ThinkR, we have a template for tasks. All functions starting with ‘init’ allow us to have templates for specific projects, such as service or training.
add_project("my_mission") %>% init_presta()