【问题标题】:Is there a way to capture time on Google Tasks using the Tasks API. New version of google tasks can capture time and create recursive reminders有没有办法使用 Tasks API 在 Google Tasks 上捕获时间。新版谷歌任务可以捕捉时间并创建递归提醒
【发布时间】:2019-08-17 10:43:01
【问题描述】:

新版 Google Tasks 具有截止日期的时间组件和设置重复性任务的方法。我在下面添加了一张图片。

可以使用 Google Tasks API 来记录时间吗?

如果我在任务 API 到期字段中使用时间组件,任务 API 会自动将时间组件转换为 00:00

let headers = new HttpHeaders()
        .set('Content-Type', 'application/json; charset=UTF-8')
        .set('Authorization', 'Bearer '+ self._accessToken);
let body = {
     'title': 'Hello world',
     'notes': 'random task notes',
     'due': '2019-03-27T09:45:00Z'
  };

return self.http.post('https://www.googleapis.com/tasks/v1/lists/@default/tasks', body, {headers: headers});

【问题讨论】:

  • 您可以对 Google 的公共问题跟踪器进行投票,以通过 API 访问这些数据。问题在这里:issuetracker.google.com/issues/128979662。如果您受到影响,您可以就该问题投票。

标签: api task google-workspace google-api-js-client


【解决方案1】:

根据文档,

无法通过 API 读取或写入任务到期的时间。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-20
    • 2022-10-17
    • 2021-06-21
    相关资源
    最近更新 更多