Thanks for the prompt reply, I imagined that :(, the strange thing (for me) is that if I manually send a query, with a Rest client for instance, having this querystring: http://picasaweb.google.com/data/feed/api/all?published-min=2012-12-10&max-results=10, I get 10 pictures published after the 10th December 2012, while if I include the tag parameter in the querystring it is not working anymore...
Nick On Wednesday, December 12, 2012 12:54:13 AM UTC+1, Mike Erickson wrote: > > Yes, sorry, but the Google Picasa API doesn't support the > published-min/published-max query parameters. > > The first paragraph of the > Parameters<https://developers.google.com/picasa-web/docs/2.0/reference#Parameters>guide > state that: > > Picasa Web Albums supports the following Google Data Protocol query > parameters<https://developers.google.com/gdata/docs/2.0/reference#Queries> > : start-index, max-results, alt, fields, and prettyprint. The user-based > and community search feeds support the q full-text search query > parameter. Picasa Web Albums does not currently support the other standard > parameters. > > Sorry, it looks like you're out of luck there, for you. But you can use > the fields= post-query > filtering<https://developers.google.com/gdata/docs/2.0/reference#fields>to > modify your results. > > In fact, there was a recent question here that you might find > helpful<https://groups.google.com/forum/?fromgroups=#!searchin/Google-Picasa-Data-API/fields/google-picasa-data-api/NTwt_sAzArM/M0CPtG-I2ZoJ> > . > > > On Tue, Dec 11, 2012 at 1:06 PM, Nicolò Aquilini > <[email protected]<javascript:> > > wrote: > >> Hello, >> >> I'm using the Google Picasa Web Album API and I would like retrieve >> public images having some tags and published later than a given date. >> I use the following code to get the results: >> >> Picasawebservice picasa=new PicasawebService("PicsPerTags"); >> URL baseSearchUrl=new URL("https://picasaweb.google.com/data/feed/api/all >> "); >> ... >> query=new Query(baseSearchUrl); >> query.setStringCustomParameter("kind", "photo"); >> query.setStringCustomParameter("tag", TAGS); >> ... >> query.setPublishedMin(dateTime); //e.g. 2012-12-10 >> ... >> AlbumFeed searchResultsFeed; >> try { >> searchResultsFeed = picasa.query(query, AlbumFeed.class); >> for (PhotoEntry photo : searchResultsFeed.getPhotoEntries()) { >> retrievedPics.add(photo); >> } >> } catch (IOException e) { >> ... >> } >> >> For the tags no problem, but I get images prior to the datetime I >> specified... >> >> Am I missing something? >> >> Thank you, >> >> Nick >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Picasa Web Albums API" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/google-picasa-data-api/-/AA1pQSYLv6sJ. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> 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 view this discussion on the web visit https://groups.google.com/d/msg/google-picasa-data-api/-/Y-IVLzfpuUgJ. 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.
