Nothing
#' Random key
#'
#' @return key
#'
#' @importFrom digest digest
#' @importFrom glue glue
#' @return random key generate with digest
random_key <- function() {
# create a random key
mdp <- paste0(sample(letters,
size = 10,
replace = TRUE
),
collapse = ""
)
digest(glue("{Sys.time()}{mdp}"))
}
#' Call the good version of API
#'
#' @param ... any params of POST request
#'
#' @return list
call_api <- function(...){
POST(
"https://todoist.com/api/v8/sync",
...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.