2009/10/20 dominity <[email protected]>

>
> Hi, again.
>
> Thanks for your reply.
>
> I was trying this but it didn't work. I set max results to 10000. Is
> it enough?))
> Server countinued to respond with 33 events.
>
> By the way, I'm using java client library. Maybe it's feature of this
> library?
>
> Give me the hint, please.
>
>
> No this feature is on, on the Java library (I use it ;-) )
here the code which works for me (with little change)

<code>
myService = new CalendarService("SERVICE");
myService.setUserCredentials("ADDRESS", "PASSWORD");
URL feedUrl = new URL("http://www.google.com/calendar/feeds/"; +
pCourant.getURLAgenda() + "/private/full");
CalendarEventFeed resultFeed = myService.getFeed(feedUrl,
CalendarEventFeed.class);

CalendarQuery myQuery = new CalendarQuery(feedUrl);
myQuery.setMinimumStartTime(DateTime.parseDateTime(dataSDF.format(dateDebut).toString()+"T00:00:00"));
myQuery.setMaximumStartTime(DateTime.parseDateTime(dataSDF.format(dateFin).toString()+"T23:59:59"));
myQuery.setMaxResults(200);
myQuery. setStringCustomParameter("singleevents","true");

CalendarEventFeed resulstFeed = myService.query(myQuery,
CalendarEventFeed.class);
Iterator iterResult = resulstFeed.getEntries().iterator();
</code>

Hope this helps


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to