0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Fetches reports from Toggl and caches them in a MongoDB store.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
>= 0
~> 10.0

Runtime

 Project Readme

TogglCache

Fetches reports data from Toggl API and caches them in a PostgreSQL database.

This allows you to build applications performing complex operations on a large number of Toggl content without the Toggl API latency. You may also use it to backup your precious data!

Build Status Code Climate Test Coverage

Installation

Add this line to your application's Gemfile:

gem 'toggl_cache'

And then execute:

$ bundle

Or install it yourself as:

$ gem install toggl_cache

Usage

Inside of bin/console:

logger = Logger.new(STDOUT)
logger.level = Logger::DEBUG
client = TogglCache::Client.new(
  api_token: 'SOME-API-TOKEN',
  user_agent: 'MyCustomTogglCache',
  logger: logger
)
TogglCache.sync_reports(client, 'TOGGL-WORKSPACE-ID')

The CLI

ruby lib/toggl_cli.rb [batch|help]

Contributing

  1. Fork it ( https://github.com/rchampourlier/toggl_cache/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Check the code of conduct.