所属するアルバムを知らなくても、Picasaからタイトルで写真を取得する方法を知っている人はいますか?私はすでに認証されています。
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 に答える