2
有人知道如何通過標題從Picasa獲取照片而無需知道它所屬的相冊嗎?我已經通過身份驗證。如何使用Java API從Picasa獲取某個標題的照片
有人知道如何通過標題從Picasa獲取照片而無需知道它所屬的相冊嗎?我已經通過身份驗證。如何使用Java API從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());
}