toggl-reports

Toggl Reports api wrapper

toggl-reports

Toggl Reports api wrapper

Install the module with: npm install toggl-reports

See the official Toggl API report docs for detailed info.

var Reports = require('toggl-reports');
var reports = new Reports('--your-api-token--');

options can contain:

  • workspace_id (required)

Alternatively, you can just pass the workspace_id as a string directly.

reports.weekly(options, function(err, res){
    if(err) console.log(err);
 
    console.log(res);
});
 
// or the other option for the weekly call
 
reports.weekly('--your-workspace-id--', function(err, res){
  if(err) console.log(err);
 
  console.log(res);
});
 

options can contain:

  • workspace_id (required)
  • since
  • until
  • page
reports.detailed(options, function(err, res){
  if(err){
    log(err);
  }
  console.log(res);
});
 

options can contain:

  • workspace_id (required)
  • since
  • until
  • grouping
  • subgrouping
reports.summary(options, function(err, res){
  if(err){
    log(err);
  }
  console.log(res);
});
 

Copyright (c) 2014 Anthony Ringoet. Licensed under the MIT license.