R/add_ticktick_task.R

Defines functions add_ticktick_task

Documented in add_ticktick_task

#' Add a TickTick Task from the console
#' @export

add_ticktick_task <-
    function(task,
             description) {

        if (is.null(Sys.getenv("ticktick_email"))) {

                stop('ticktick_email is null')

        }

        postfixR::send_email(to = Sys.getenv("ticktick_email"),
                             subject = task,
                             body = description)

    }
meerapatelmd/secretary documentation built on Oct. 8, 2021, 8:49 a.m.