Set the following
- EMAIL Use the mail address registered in toggl
- WORKSPACE_ID ID is listed at the end of the summary URL https://toggl.com/app/reports/summary/***
- TOGGL_API_KEY Get toggl api key
- SHEET_NAME Please enter the name of the sheet to be written
Set script in Spreadsheet
- Open script editor header menu > tool > script editer
- Copy and paste index.js
- Select the function for writeTogglReport
- Run and grant sheet editing authority
- Click the clock icon to set cron