0.0
No commit activity in last 3 years
No release in over 3 years
A simple gem that enables to communicate with toggl API. Main Purpose is to receive items for invoicing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.5
~> 0.6
~> 2.5
~> 1.5

Runtime

~> 0.8
~> 1.6
>= 0
 Project Readme

Toggl-billable Build Status

Toggl client with main purpose to prepare data for invoicing. It is developed and tested only for the free version of Toggl (for now). The functionality is very limited and might be extended in future.

Install

Prerequisities

  • ruby 2.0 or higher
  • bundle (You can install using gem install bundle)

Add gem to Gemfile

gem 'toggl_billable'

Simply Run

 bundle install

For running tests

rspec spec

Usage

 require 'toggl_billable'
 TogglBillable::Client.start(TOGGL_API_TOKEN)

Item Format

Item is returned in following format. Format customisation might come as next feature.

  {
    task: Date: (project) - task,
    amount: 7.5,
    unit: hours
  }

Documentation

Better documentation will be added. To get items for last month run sth like that:

require 'toggl_client'

TogglBillable::Client.start(TOGGL_API__TOKEN)
TogglBillable::Reports::Details.new.last_month_billable

TODO

  • Toggle Pro features integration
  • More options to customize output and queries params