Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

40 lines (21 loc) · 1.08 KB

Toggl report script

Instalation

It works only on MAC or LINUX :D #PrayForWindows

Ruby instalation on your station is required!

Before first start of script please open terminal, go to toggl tracker directory and run bash setup.sh command.

Required parameters

For using of toggl report script you must provide 4 parameters.

  • token

    In Toggl web admin go to Profile settings and on bottom of page you can find your api key in field API Token

    Example: d8c97bb22aa69cef234fc9823e408e9b

  • project_id

    In Toggl web admin, go to Projects list, than open detail of project (that you want track) and id after last slash in url is project ID.

    Example: https://toggl.com/app/projects/123456/edit/12345678

    In this case project_id is 12345678

  • month

    Month number in format M or MM

  • year

    Year in format YYYY

Generating report

To generate report in csv format, run script in root folder:

ruby main.rb --token=<token> --project_id=<project_id> --month=<month> --year=<year>