Hello, Can you tell us what ApplicationConstants.PICASA_MAIN_ALBUM_ID is? -MErickson
On Thu, Feb 2, 2012 at 5:42 PM, fayçal.inajjarane < [email protected]> wrote: > Hi all, > I create a new "picasawebService" like this: > > ---- Declarations ------ > private PicasawebService picasawebService; > private List<PhotoEntry> photos; > ------------------------------ > this.picasawebService = new PicasawebService("faycal- > inajjarane.appspot.com"); > > > this.picasawebService.setUserCredentials(ApplicationConstants.PICASA_WEB_USERNAME, > ApplicationConstants.PICASA_WEB_PASSWORD); > ------------------------------ > > > > The service is set correctly and works fine, but when I try to get > photos list like this > > ------------------------------ > URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/ > user/" + > > ApplicationConstants.PICASA_WEB_USERNAME_SHORT + > "/albumid/" + > ApplicationConstants.PICASA_MAIN_ALBUM_ID ); > > AlbumFeed mainAlbum = > this.picasawebService.getFeed(feedUrl, > AlbumFeed.class); > > this.photos = mainAlbum.getPhotoEntries(); > ------------------------------ > The getPhotoEntries is empty list (in eclipse debug, it gives me [] as > a result). The URL is correctly generated, I tried it! > > Why the getPhotoEntries gives me empty list? How can I retrieve photo > list as explained in the documentation? > > http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_java.html#ListPhotos > > -- > You received this message because you are subscribed to the Google Groups > "Google Picasa Web Albums API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-picasa-data-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.
