【问题标题】:Get a FileEntry from a path in Google Documents List Api (gdata-java-client)从 Google Documents List Api (gdata-java-client) 中的路径获取 FileEntry
【发布时间】:2012-06-30 01:06:40
【问题描述】:

如何从其路径中获取 Google Docs FileEntry?

一旦我从 Google Docs 中的条目中获取路径,例如:

https://doc-04-20-docs.googleusercontent.com/docs/secure/m71240U1?h=1630126&e=download&gd=true

以后如何获取它们对应的FileEntries?

【问题讨论】:

    标签: java google-docs gdata


    【解决方案1】:

    在经过身份验证的 DocsService 上调用 getEntry 方法。

    String rootUrl = "https://docs.google.com/feeds/default/private/full";
    String path = //file entry's id
    FileEntry entry = _service.getEntry(new URL(rootUrl + "/" + URLEncoder.encode(path, "UTF-8")), FileEntry.class);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-18
      • 2012-05-03
      • 2011-09-16
      • 1970-01-01
      • 2012-05-07
      • 1970-01-01
      • 2011-05-01
      • 1970-01-01
      相关资源
      最近更新 更多