scalablepath-toggl

1.0.0 • Public • Published

Toggl to ScalablePath Report

This is just a small node script to retreive the time tracked in Toggl and export it in a format that ScalablePath's Tempo app will understand

Usage

The basic usage is

node index.js <options>

Example

  1. Get the time from an interval
node index.js --token 12098efnojsdf00 --workspace 123456 --person 151 --since 2015-10-02 --until 2015-11-08
  1. Get the workspace id
node index.js --get-workspace

Options

  • token: The token provided by toggle
  • workspace: The workspace id (use --get-workspace to find it)
  • since: Starting date
  • until: End date
  • person: ScalablePath's Developer ID
  • get-workspace: Shows a list of Toggl's workspace IDs and names for my account. Toggl requires it for report generation

Configuration

3 values are required for configuration:

  • workspace
  • token
  • person

This can be provided as commandline options or as environment variables

export SP_TOGGL_TOKEN=2e7ad31993766ed0b9310ab977b7e278
export SP_TOGGL_WORKSPACE=763001
export SP_TOGGL_PERSON=151
 
node index.js --since 2015-10-02 --until 2015-11-08

Readme

Keywords

Package Sidebar

Install

npm i scalablepath-toggl

Weekly Downloads

3

Version

1.0.0

License

GPL-3.0

Last publish

Collaborators

  • marioy47