有人知道如何在不知道照片所属相册的情况下通过标题从 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());
}
关于java - 如何使用 Java API 从 Picasa 获取具有特定标题的照片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4810414/