Sure
CalendarEventEntry entry = new CalendarEventEntry();
entry.setTitle(new PlainTextConstruct("Title"));
entry.setContent(new PlainTextConstruct("Summary"));
//NOTE: The following string is actually generated but this is the result
Recurrence recur = new Recurrence();
recur.setValue(
"DTSTART;TZID=America/Phoenix:20110818T090000\r\n"+
"DTEND;TZID=America/Phoenix:20110818T101500\r\n"+
"RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20111206T090000Z;BYDAY=TH\r\n"+
"EXDATE;TZID=America/Phoenix:20110905T090000\r\n"+
"EXDATE;TZID=America/Phoenix:20111111T090000\r\n"+
"EXDATE;TZID=America/Phoenix:20111124T090000\r\n"+
"EXDATE;TZID=America/Phoenix:20111125T090000\r\n");
entry.setRecurrence(recur);
entry.addLocation(new Where(Where.Rel.EVENT, "", "Location"));
BatchUtils.setBatchId(event, Integer.toString(i++));
BatchUtils.setBatchOperationType(event, BatchOperationType.INSERT);
batchRequest.getEntries().add(event);
Like I said, the entry itself is created correctly and appears correct in
Google Calendar in every aspect except when I view an individual event
details. It display that single instance as though it is a single event.
When I pull the event through the API it is recurring and when I delete the
event in Google Calendar, it asks me to delete the single instance or all in
the series. It almost just seems like a bug to me in how Google Calendar is
processing the event.
--
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://code.google.com/apis/calendar/community/forum.html