evrone / toggl-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toggl Python API

https://pypi.python.org/pypi/toggl_python https://travis-ci.com/evrone/toggl_python https://toggl-python.readthedocs.io/en/latest/?badge=latest https://pyup.io/repos/github/evrone/toggl_python/

Toggl Python API

Installation

pip install toggl-python or use poetry poetry add toggl-python

Usage example

Get authenticated user time entries:

from toggl_python import TokenAuth, TimeEntries

if __name__ == "__main__":
    auth = TokenAuth('AUTH_TOKEN')
    print(TimeEntries(auth=auth).list())

Get information about the authenticated user:

from toggl_python import TokenAuth, Users

if __name__ == "__main__":
    auth = TokenAuth('AUTH_TOKEN')
    print(Users(auth=auth).me())

Get information about authenticated user workspaces:

from toggl_python import TokenAuth, Workspaces

if __name__ == "__main__":
    auth = TokenAuth('AUTH_TOKEN')
    print(Workspaces(auth=auth).list())

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

License:MIT License


Languages

Language:Python 100.0%