Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all Google Calendar Goals and Reminders that are marked as DONE

In Google Calendar it is possible to:

1.) Mark a Goal as "Did it":

Goal

2.) Mark a Reminder as "Mark as done":

Reminder

3.) Mark a Task as "Mark complete":

Task

I know that it is possible to use Google Tasks API to get a list of all Tasks marked as "complete" by checking the task.status string property and comparing it to "completed":

https://developers.google.com/tasks/v1/reference/tasks

In the Google Calendar API, I only found "Events" - Goals are never mentioned and Reminders are only mentioned as "email / sms / popup" reminders for the events (which is not what I want).

https://developers.google.com/calendar/v3/reference/

I can't find the Google Keep API.

How can I get a list of all Goals and Reminders marked as "done"?

I am willing to work with anything: Google Calendar / Google Tasks / Google Keep

I would use any official or unofficial / open source API in either Javascript or Php.

I would appreciate any answer or suggestion, thank you!

like image 436
Jinjinov Avatar asked May 12 '19 10:05

Jinjinov


1 Answers

On GitHub I found a Python library for Google Reminders:

https://github.com/jonahar/google-reminders-cli

The Reminder class has a bool variable "done", which is exactly what I wanted.

That is why I ported the Python library to JavaScript and to PHP:

https://github.com/Jinjinov/google-reminders-js

https://github.com/Jinjinov/google-reminders-php

like image 148
Jinjinov Avatar answered Sep 29 '22 16:09

Jinjinov