【问题标题】:Google Document List Java API - Updated-minGoogle 文档列表 Java API - 已更新
【发布时间】:2012-05-03 23:20:36
【问题描述】:

似乎在使用 updatedMin 的地方使用 DocumentQuery 似乎无法正常工作。此查询确实找到了自“何时”以来创建的新文件和文件夹,但未能返回自该时间以来被修改、移动、删除或其他任何内容的文件。

DocumentQuery myQuery = new DocumentQuery(new URL("https://docs.google.com/feeds/default/private/full/"));
myQuery.setUpdatedMin(when);
DocumentListFeed entries = getDocsService().getFeed(myQuery, DocumentListFeed.class);

我意识到 API 可能会随着即将推出的 Google Drive 发生变化,在此期间有什么变化吗?

【问题讨论】:

    标签: google-docs-api google-drive-api


    【解决方案1】:

    要检索自特定日期以来已编辑的文档,请使用 edited-min 查询参数。

    DocumentQuery 实例,您可以使用addCustomParameter 设置这样的值。

    query.addCustomParameter(
        new Query.CustomParameter("edited-min", "<DATE_IN_RFC_3339_FORMAT>");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-06
      • 2021-12-12
      • 1970-01-01
      • 1970-01-01
      • 2011-12-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多