#' Title
#'
#' @param api_token the toggl api token
#' @param workspace_id the workspace id
#'
#' @export
#' @importFrom purrr keep
get_workspace_users <- function(api_token = get_toggl_api_token(),
workspace_id = get_workspace_id(api_token)){
url <- glue::glue("https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/users")
wp <- content(GET(url,
# verbose(),
authenticate(api_token, "api_token"),
encode = "json"))
wp %>%
bind_rows()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.