Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

'Toggl' object has no attribute 'getDetailedReportPages' #40

Open
tomashornak opened this issue Feb 11, 2020 · 0 comments
Open

'Toggl' object has no attribute 'getDetailedReportPages' #40

tomashornak opened this issue Feb 11, 2020 · 0 comments

Comments

@tomashornak
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant