0

How do I get a Google Docs FileEntry from its path?

Once I get the paths from entries in Google Docs, such as:

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

How do I obtain their corresponding FileEntries later?

4

1 に答える 1

0

認証された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);
于 2012-06-29T17:06:40.437 に答える