The package toggleR
depends on:
httr
to use the REST api on https://toggl.comjsonlite
to parse JSON dataWiP
A simple example
library(tidyverse)
library(jsonlite)
library(httr)
library(toggleR)
# get the list of groups from toggl
groups <- as_tibble(get.toggl.groups(Sys.getenv("TOGGL_TOKEN"), Sys.getenv("TOGGL_WORKSPACE")))
To get the detailed report for a group
# get the entries for a group for the last 30 days
get.toggl.group.data(Sys.getenv("TOGGL_TOKEN"), Sys.getenv("TOGGL_WORKSPACE"), <groupId>, since = Sys.Date() - 30)
For more details
?get.toggl.groups
to read the documentation in the package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.