【问题标题】:How to get all Google Calendar Goals and Reminders that are marked as DONE如何获取所有标记为 DONE 的 Google 日历目标和提醒
【发布时间】:2019-05-12 10:47:26
【问题描述】:

Google 日历中可以:

1.) 将目标标记为“做到了”:

2.) 将提醒标记为“标记为已完成”:

3.) 将任务标记为“标记完成”:

我知道可以使用 Google Tasks API 通过检查 task.status 字符串属性并比较来获取标记为“完成”的所有 Tasks 的列表发给"completed":

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

Google Calendar API 中,我只发现“事件” - 目标 从未提及,提醒 仅提及为“电子邮件/短信/弹出”事件提醒(这不是我想要的)

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

我找不到 Google Keep API

如何获得所有标记为“完成”的目标和提醒的列表?

我愿意使用任何东西:Google Calendar / Google Tasks / Google Keep

我会在 Javascript 或 Php 中使用任何官方或非官方/开源 API。

如果有任何答案或建议,我将不胜感激,谢谢!

【问题讨论】:

标签: javascript php google-api google-calendar-api google-tasks-api


【解决方案1】:

在 GitHub 上,我找到了一个用于 Google 提醒的 Python 库:

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

Reminder 类有一个布尔变量“done”,这正是我想要的。

这就是我将 Python 库移植到 JavaScript 和 PHP 的原因:

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

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

【讨论】:

    【解决方案2】:

    我已经查看了 Google Tasks API 的官方参考资料。

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

    在这个API中,有一个showCompleted的请求参数。

    您可以将其设置为 true,其他设置为 false。

    如果您会遇到与此相关的任何其他问题,请告诉我。

    【讨论】:

    • 错了!那是任务,我的问题是提醒!
    猜你喜欢
    • 1970-01-01
    • 2011-02-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多