【发布时间】:2011-06-16 04:11:59
【问题描述】:
有人知道如何在不知道照片所属相册的情况下从 Picasa 中获取照片吗?我已经通过身份验证了。
【问题讨论】:
有人知道如何在不知道照片所属相册的情况下从 Picasa 中获取照片吗?我已经通过身份验证了。
【问题讨论】:
我想你可以这样做:-
URL baseSearchUrl = new URL("yourPicasaURL");
Query myQuery = new Query(baseSearchUrl);
myQuery.setStringCustomParameter("kind", "photo");
myQuery.setMaxResults(10);
myQuery.setFullTextQuery("hello"); // search photo that has the word "hello"
AlbumFeed searchResultsFeed = myService.query(myQuery, AlbumFeed.class);
for (PhotoEntry photo : searchResultsFeed.getPhotoEntries()) {
System.out.println(photo.getTitle().getPlainText());
}
【讨论】: