有谁知道如何在不知道它所属的相册的情况下从 Picasa 中获取照片的标题?我已经通过身份验证了。
问问题
400 次
1 回答
0
我想你可以做这样的事情: -
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());
}
于 2011-01-26T23:54:25.570 回答