The way that you are creating the url, Google is constructing the url "http://www.google.com/calendar/feeds/[email protected]/private/full?singleevents=true?max-results=100"
whereas it should be "http://www.google.com/calendar/feeds/[email protected]/private/full?singleevents=true&max-results=100" Can you do something like: myQuery. setStringCustomParameter("singleevents","true"); instead of doing manually adding the parameter to the url? Ray > URL feedUrl = new URL("http://www.google.com/calendar/feeds/" + > pCourant.getURLAgenda() + "/private/full?singleevents=true"); > CalendarQuery myQuery = new CalendarQuery(feedUrl); > myQuery.setMinimumStartTime(dateD); > myQuery.setMaximumStartTime(DateE); > myQuery.setMaxResults(100); > > But an exception is raise. > > InvalidEntryException: Bad Request > Invalid value for singleevents parameter: true?max-results=100 > > It seems like singleevents does not accept true as a value. > > Am I doing something wrong? > 2009/10/19 Ray Baxter <[email protected]> >> >> How many events are in your results? If there are more than 25, you >> will have page through the events or pass a higher value as the >> max-results parameter to see them all. >> >> >> Ray >> >> >> >> On Mon, Oct 19, 2009 at 6:30 AM, Lerch <[email protected]> wrote: >> > >> > I've been grappling with recurring events in a shared calendar, >> > writing multiple code paths based on whether an event was single or >> > recurring and also whether it was created by an admin or by the user, >> > etc. Then, reading the API spec more closely and browsing this group >> > I found the SingleEvents query parameter and thought all my problems >> > were solved! I'd see everything as separate events, so no more split >> > code path! >> > >> > However, what I've found is that when I query the full projection feed >> > with SingleEvents = true, either through the .NET api or by appending ? >> > singleevents=true to the URL and looking at the raw file, I do not get >> > all the events. That is to say, using xxx/full I get one set of >> > events, including recurring events represented as single events, and >> > using xxx/full?singleevents=true I get the a couple of the recurring >> > events expanded as individual events, plus a couple of (seemingly >> > random) non-recurring events, but not ALL of the non-recurring events >> > that are in xxx/full?singleevents=false. >> > >> > Is this expected behavior or is something weird happening today? If >> > it's expected behavior, can I concatenate the two feeds and get an all- >> > inclusive list? Thanks much for any assistance. >> > >> > >> > > >> > >> >> > > > > -- > Florent Devin > Téléphonez moi gratuitement via le net : > Domicile : http://call.mylivio.com/fd0 > Professionnel : http://call.mylivio.com/fd_pro > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
