Hi,
I use gData Java Client Library and my objective is to perform a
Calendar Event query providing a result in iCalendar standard (RFC
2445) format. In my preliminary test, I created an object from
CalendarQuery class then I defined 'setMinimumStartTime' and
'setMaximumStartTime'. As I can see in Google source examples, the
query response is returned in a CalendarEventFeed instance where it is
possible to get information about one or more events in that range of
time. Just a little piece of my code to make myself clear.
...
CalendarQuery myQuery = new CalendarQuery(postURL);
myQuery.setMinimumStartTime(start);
myQuery.setMaximumStartTime(end);
CalendarEventFeed  result = myService.query(myQuery,
CalendarEventFeed.class);
int total = result.getEntries().size();
for (int a = 0; a < total; a++) {
    System.out.println(
result.getEntries().get(a).getTitle().getPlainText() );
    //... more 'println' goes in this block...
}
...
It would be very useful for me if it is possible to return a query in
iCal/vCal format. It is very interesting Google converts a Calendar
from server to a .ics calendar format file, but it contains all events
in the calendar. My question is: how is it possible to obtain a .ics
file from a particular range of time giving a query, such as "events of
the week" for example?
Thank you!


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

Reply via email to