Welcome to togglwrapper’s documentation!

Release v1.0. (Installation)

Easily interface with Toggl’s API. Toggl is free time tracking software.

Works in Python 2.7+ and Python 3+.

Please see Toggl’s API Documentation for information about which keys and values to send for the data dict used during creating and updating.

Installing:

Quickstart

>>> from togglwrapper import Toggl
>>> toggl = Toggl('your_api_token')``
>>> toggl.User.get()
{u'data': {u'achievements_enabled': True,
u'api_token': u'your_api_token',
u'email': u'your_email@domain.com',
u'fullname': u'Your Name',
...
}
>>> toggl.Clients.get()
[{u'at': u'2015-07-02T14:27:59+00:00',
u'id': 12031893,
u'name': u'Client Name',
u'wid': 3928}]
>>> toggl.Workspaces.get()
[{u'admin': True,
u'api_token': u'your_api_token',
u'id': 1234,
..
}]
>>> toggl.Clients.create({"client":{"name":"Very Big Company", "wid": 1234}})
{u'data': {u'id': 294021, u'name': u'Very Big Company', u'wid': 1234}}

API Documentation:

Indices and tables