Thanks Ryan! I think there is no bug then. It was a combination of me quoting an error in the other thread and I thought that the modSince parameter was the same thing.
Btw, is there an API way to get the "updated-min" thing or do I have to send it in the URL? A feed.setReturnCanceled(boolean) would be good.. :) Cheers, Mikael On Nov 10, 8:30 pm, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote: > Hi Mikael, > > >From the docs:"There may be times you want to see cancelled events in a > >feed, such as > when you want to synchronize your calendar between two calendar > systems. To see cancelled events, you must request a private > authenticated feed and specify an updated-min query parameter." [1] > > So, updated-min is the parameter you need to set to get deleted events. > > This should allow you to retrieve all cancelled events (provided you > use ?updated-min=1950-01-01 or the like) > > The method you are using in step 3 is actually something different. > The getFeed method which accepts an ifModifiedSince [2] parameter is > used to send the 'If-Modified-Since' HTTP header [3] with the request. > This allows you to only retrieve a feed from the calendar server if the > content of the feed would be different than the feed retrieved at the > supplied time. Although this header is traditionally used for HTTP > caching mechanisms, it is also very useful for syncronization programs > using GData-based APIs -- enabling them to only have to handle a 304 > Not Modified response instead of a full XML response if nothing has > changed. > > > 1) Specifying "?start-min=2006-01-02" in the url gives me two canceled > > events.I don't think that's right -- I'll try and track that one down > > > I hope this and other bugs reported can be fixed as it is getting quite > > hard to use the client library with these kinds of (IMO) profound bugs. > > > Also, is there a more appropriate place to post and follow up bugs?Sorry > > for the trouble you're having. Feel free to continue to post > potential bugs to this group. > > Thanks, > -Ryan > > [1]http://code.google.com/apis/gdata/calendar.html > > [2]http://code.google.com/apis/gdata/javadoc/com/google/gdata/client/Goo...) > > [3]http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.25 > > [EMAIL PROTECTED] wrote: > > Hello. > > > Referring to this post I should be able to get a hold of all canceled > > events if I use an authorized feed. All events ever created should be > > in this feed, no matted if I "deleted" them in the UI, or set their > > status to Canceled using API. > >http://groups-beta.google.com/group/google-calendar-help-dataapi/brow... > > > There is however bugs and inconsistencies in my results. > > > Using the code below the returned events are faulty in test 2 and 3 but > > in different ways. > > 1) Specifying "?start-min=2006-01-02" in the url gives me two canceled > > events. This is very strange since it's not "1" (no canceled events > > returned) or the real number of canceled events that should be close to > > 100. > > 2) Specifying the modSince as an argument to getting the feed doesn't > > give me the canceled events. See test 3. > > > I hope this and other bugs reported can be fixed as it is getting quite > > hard to use the client library with these kinds of (IMO) profound bugs. > > > Also, is there a more appropriate place to post and follow up bugs? > > > Cheers, > > Mikael Grev > > MiG InfoCom AB > > > public static void main(String[] args) > > { > > Locale.setDefault(Locale.US); // If not specified everything bugs as > > explained in another bug report. Locale.GERMAN would show the bug for > > instance. > > try { > > CalendarService cs = new > > CalendarService("MiGInfoCom-GCalConnect-1.0"); > > cs.setUserCredentials("[EMAIL PROTECTED]", "<mypassword>"); > > > // Test1 Should return the "visible" count of entries. Now 1 for mew. > > URL url1 = new > > URL("http://www.google.com/calendar/feeds/default/private/full"); > > DateTime dt1 = null; > > CalendarEventFeed feed1 = cs.getFeed(url1, CalendarEventFeed.class, > > dt1); > > System.out.println("1. Entry count: " + feed1.getEntries().size()); > > > // Test2 Should return all entries, also cancelled. Returns 3 for me. > > Should be many many more. > > URL url2 = new > > URL("http://www.google.com/calendar/feeds/default/private/full?start-min=2..."); > > DateTime dt2 = null; > > CalendarEventFeed feed2 = cs.getFeed(url2, CalendarEventFeed.class, > > dt2); > > System.out.println("2. Entry count: " + feed2.getEntries().size()); > > > // Test2 Should return all entries, also cancelled. Returns 1 for me. > > Should be many many more. > > URL url3 = new > > URL("http://www.google.com/calendar/feeds/default/private/full"); > > DateTime dt3 = > > DateTime.parseDateTime("2006-01-02T00:00:00.000-05:00"); > > CalendarEventFeed feed3 = cs.getFeed(url3, CalendarEventFeed.class, > > dt3); > > System.out.println("3. Entry count: " + feed3.getEntries().size()); > > > } catch (Exception e) { > > e.printStackTrace(); > > } > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
