Hi, those are some constants I used:
public static final String PICASA_WEB_USERNAME_SHORT = "fayssal.inajjarane"; public static final String PICASA_MAIN_ALBUM_ID = "5698678593999350737"; Tested and works fine, but I still have the same problem. Thanks for your help. On Tue, Feb 7, 2012 at 10:47 PM, Michael Erickson <[email protected]>wrote: > 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/ <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. > -- Cordialement. Fayçal INAJJARANE BP N° 13964 Casablanca PPAL 20032 CASABLANCA MAROC -- 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.
