1
我想通過它的名字得到一個集合/文件夾,但我得到一個錯誤,這是我的了:獲取集合/文件夾
DocsService client = new DocsService("test testnet v1");
//Get the ur to access google docs folders
URL feedUrl=new URL("https://docs.google.com/feeds/default/private/full/folder%3Aroot?oauth_token="+token);
DocumentQuery query = new DocumentQuery(feedUrl);
query.setTitleQuery(name);
query.setTitleExact(true);
DocumentListFeed feed=null;
try {
feed = client.getFeed(query, DocumentListFeed.class);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//Get the entry founded
for (DocumentListEntry entry : feed.getEntries()) {
resourceId = entry.getDocId();
}
希望有一個可以幫助我,Thx。