Bajro Spaho
Bajro Spaho

Reputation: 21

Is it possible to get all the history of reccuring google tasks with google tasks API?

I have a tasklist with repeating tasks inside. I managed to retrieve the tasks via google tasks API, but only for the current day. From the documentation I find it impossible to retrieve all the history of reccuring tasks. Am I missing something?

The idea is to create a script to keep a count of how successful a person is in doing his dailies, keeping a streak, maybe make a chart to see ratio of completed/not completed etc...

I used the google quickstart code and modified it a bit, but as much as I try, I can only get the reccuring tasks from that day... Any help?

    # Call the Tasks API
    results = service.tasks().list(tasklist='b09LaUd1MzUzY3RrOGlSUg', showCompleted=True,
                                   showDeleted=False, showHidden=True).execute()
    items = results.get('items', [])

    if not items:
        print('No task lists found.')
        return

    print('Task lists:')
    for item in items:
        print(item)

Upvotes: 2

Views: 467

Answers (1)

Water
Water

Reputation: 21

Google task API doesn't provide the API to determine if one task is repeated or not. It will provide only one instance even if one task is repeated. They have one issue tracking page: https://issuetracker.google.com/u/1/issues/273870211

So, you can't do that.

Upvotes: 2

Related Questions