首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从Google分配的Google任务,在通过API查询时没有显示

从Google分配的Google任务,在通过API查询时没有显示
EN

Stack Overflow用户
提问于 2022-09-04 15:44:47
回答 1查看 121关注 0票数 1

最近,发布有可能将任务分配给Google中的人。这些任务随后会出现在Google应用程序中,但是,当通过API (甚至更快)查询时,这些任务就不会出现。

有人试过吗?我想通过API将它们拉到我的things3收件箱。

代码:

代码语言:javascript
复制
function listTasks(taskListId) {
  try {
    // List the task items of specified tasklist using taskList id.
    Tasks.Tasks.list(taskListId,{state:"1"})
    const tasks = Tasks.Tasks.list(taskListId);
    // If tasks are available then print all task of given tasklists.
    if (!tasks.items) {
      Logger.log('No tasks found.');
      return;
    }
    // Print the task title and task id of specified tasklist.
    for (let i = 0; i < tasks.items.length; i++) {
      const task = tasks.items[i];
      if (task.status != "completed"){
        Logger.log(task.title)
      //Logger.log('Task with title "%s" and ID "%s" was found and status %s.', task.title, task.id, task.completed);
      }
    }
  } catch (err) {
    // TODO (developer) - Handle exception from Task API
    Logger.log('Failed with an error %s', err.message);
  }

谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-10-21 04:31:59

这是Google任务API中的一个已知问题,正如Google的问题跟踪器中所报告的那样:

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73600736

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档