matthewdowney/TogglPy

'Toggl' object has no attribute 'getDetailedReportPages'

tomashornak opened this issue · 0 comments

Hi.

I tried both versions 0.1.1 and 0.1.0 but on both I'm unable to call method getDetailedReportPages. But method getDetailedReport works fine. I can see it's in the code on github, so I'm not sure where the issue can be.

Example code:

from toggl.TogglPy import Toggl

def load_data_from_toggl(togglAPIkey, workspace_id, dateFrom, dateTo):
    toggl = Toggl()
    toggl.setAPIKey(togglAPIkey)

    params = {"workspace_id": workspace_id,
              "since": dateFrom,
              "until": dateTo,
              "page": 1,
              }

    report_json = toggl.getDetailedReportPages(params)

...

error:

AttributeError: 'Toggl' object has no attribute 'getDetailedReportPages'

Thanks