I am trying to update the time of an event using the Java API.
Here is a snippet of my code:
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
// Add the new time
myEntry.addTime(eventTimes);
I have then tried to update the CalendarEventEntry myEntry using both
the service and just updating myEntry:
URL editUrl = new URL(myEntry.getEditLink().getHref());
CalendarEventEntry updatedEntry = (CalendarEventEntry)
myService.update(editUrl, myEntry);
or
myEntry.update();
I used Fiddler to capture what was happening. Here is the snippet
relevant to trying to update the time:
<gd:when startTime='2007-03-02T09:00:00.000-07:00'
endTime='2007-03-02T10:10:00.000-07:00'>
<gd:reminder minutes='10'></gd:reminder></gd:when>
<gd:when startTime='2007-03-02T09:00:00.000-07:00'
endTime='2007-03-02T10:00:00.000-07:00'></gd:when>
As you can see I'm trying to change the end time from 10:10 AM to
10:00 AM. So I am trying to figure out if there's a way to change the
first when entry rather than adding another when entry. I have tried
updating the start time as well with no luck. The function I am
calling seems to have no problems updating just about anything else.
Any help would be greatly appreciated.
James
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---