如何在Java客户端库中使用按日期查询?

如何在Java客户端库中使用按日期查询?,java,gdata-java-client,Java,Gdata Java Client,我想使用Java客户端库检索在特定日期之后上传的google文档。 我使用以下代码: DocumentQuery query = new DocumentQuery(feedUri); query.setPublishedMin(new DateTime(new Date().getTime())); 我有这样的例外: com.google.gdata.util.ServiceForbiddenException: This service does not support the 'publ

我想使用Java客户端库检索在特定日期之后上传的google文档。 我使用以下代码:

DocumentQuery query = new DocumentQuery(feedUri);
query.setPublishedMin(new DateTime(new Date().getTime()));
我有这样的例外:

com.google.gdata.util.ServiceForbiddenException: This service does not support the 'published-min' parameter.
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:593)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:550)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
at com.google.gdata.client.Service.getFeed(Service.java:1135)
at com.google.gdata.client.Service.getFeed(Service.java:1077)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:662)
at com.google.gdata.client.Service.getFeed(Service.java:1034)
at ua.com.stormlabs.gap.gdocs.GDocumentsRetriever.getAllDocs(GDocumentsRetriever.java:84)
at ua.com.stormlabs.gap.gdocs.GDocsServiceProcessor.start(GDocsServiceProcessor.java:56)
at ua.com.stormlabs.gap.gdocs.GDocsGapApp.main(GDocsGapApp.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

我发现这个功能不适用于Picasa。

对于其他一些服务,按日期查询工作正常