2 messages in com.googlegroups.google-picasa-data-apiRe: getFeed : how to get the feed aft...
FromSent OnAttachments
Pierre26 Nov 2007 08:49 
Pierre27 Nov 2007 05:32 
Subject:Re: getFeed : how to get the feed after the add of a picture in picasa?
From:Pierre (pier@gmail.com)
Date:11/27/2007 05:32:02 AM
List:com.googlegroups.google-picasa-data-api

Found it!

If you use the previous code, there's a kind of cache from apache... Use the following code instead : URL albumsUrl = new URL("http://picasaweb.google.com/data/feed/api/ user/xxx?kind=album"); Query myQuery = new Query(albumsUrl);;

PicasawebService myService = PicasaTools.getService(); myService.setUserCredentials("login", "mdp");

UserFeed resultFeed = (UserFeed)myService.query(myQuery, UserFeed.class); List liste = resultFeed.getEntries();

this works every time i update picasa without having to restart tomcat!

Hi,

I succeed in get albums and pictures in picasa thanks to the API. But, when i add a new Album, the change isn't taken in account in my app... How to force reload of the feed?

my code :

DateTime date = new DateTime(new Date()); URL albumsUrl = new URL("http://picasaweb.google.com/data/feed/api/ user/xxx?kind=album"); PicasawebService myService = PicasaTools.getService(); UserFeed myUserFeed = (UserFeed)myService.getFeed(albumsUrl, UserFeed.class,date); List liste = myUserFeed.getAlbumEntries();

With a picasa account with 1 album : - 1st time it works. and you see the liste with 1 album. - add an album to picasa with this account - 2nd time : you still have 1 album in the list!! - shutdown the server and start it again - 3rd time : it works and you have 2 albums!