【问题标题】:How to get a photo with a certain title from Picasa using the Java API如何使用 Java API 从 Picasa 获取具有特定标题的照片
【发布时间】:2011-06-16 04:11:59
【问题描述】:

有人知道如何在不知道照片所属相册的情况下从 Picasa 中获取照片吗?我已经通过身份验证了。

【问题讨论】:

    标签: java api photo picasa


    【解决方案1】:

    我想你可以这样做:-

    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-04-30
      • 1970-01-01
      • 2012-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多