Google ドキュメントで特定の 1 つのフォルダーの ID を取得する Java 関数を 1 つ開発しようとしていますが、この言語のドキュメントは貧弱で、開発に問題があります。今まではこれを作成できましたが、機能しません。フォルダーのドキュメントIDが表示されません
public void findfolder(String folderName) throws MalformedURLException,IOException,ServiceException{
URL feedUrla=new URL("https://docs.google.com/feeds/default/private/full/-/folder");
DocumentQuery query = new DocumentQuery(feedUrl);
query.setTitleQuery(folderName);
query.setTitleExact(true);
DocumentListFeed feed=null;
try {
feed = client.getFeed(query, DocumentListFeed.class);
} catch (IOException e) {
e.printStackTrace();
} catch (ServiceException e) {
e.printStackTrace();
}
for (DocumentListEntry entry : feed.getEntries()) {
System.out.println(entry.getDocId());
}
}`