Have you tried building up a batch request and then sending it?
I used this for deleting multiple events:
CalendarEventFeed batchRequest = new CalendarEventFeed();
CalendarEventEntry entryToDelete = <code to retrieve a CalendarEntry>
BatchUtils.setBatchId(entryToDelete, entryToDelete.getTitle().toString());
BatchUtils.setBatchOperationType(entryToDelete, BatchOperationType.DELETE);
batchRequest.getEntries().add(entryToDelete);
// Send the batch request
CalendarEventFeed feed = myService.getFeed(new URL(<<put your URL here>>),
CalendarEventFeed.class);
Link batchLink = feed.getLink(Link.Rel.FEED_BATCH, Link.Type.ATOM);
CalendarEventFeed batchResponse = myService.batch(new
URL(batchLink.getHref()), batchRequest);
That's a bit simplified, i.e. no catching exceptions and myService is
already built and authenticated. There's documentation on sending batch
requests in the Java Client API.
--
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