Project

toggl

0.03
No commit activity in last 3 years
No release in over 3 years
Toggl provides a simple REST-style JSON API over standard HTTP - http://www.toggl.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 0.1.8
>= 0.3.1
= 0.6.1
 Project Readme

toggl¶ ↑

Toggl API wrapper in a Ruby gem, this is compatible with v6 of the API

www.toggl.com

www.toggl.com/public/api

toggl command¶ ↑

If you want to create new tasks from the command line, make sure you create ~/.toggl file containing nothing but your API key.

run ‘toggl’ to see all options.

NOTE: the command line tool is currently broken and needs to be updated for V6 of the API

examples¶ ↑

toggl_interface = Toggl.new(token, "blah")

toggl_interface.time_entries

toggl_interface.time_entries({"start_date" => Date.today-1, "end_date" => Date.today})

toggl_interface.get_time_entry(12345)

toggl_interface.delete_time_entry(12345)

entry = toggl_interface.create_time_entry({ "duration" => 900, :start => Time.now, :description => "blabla"})

toggl_interface.update_time_entry(entry)

similar methods exist for clients, projects, and tasks, check the source while we work on better documentation

Copyright © 2010 Koen Van der Auwera. See LICENSE for details.