Sorry for the delay -- I'm out of town this week.

Yep, definitely near the mark.  Instead of updating, which does a PUT
to the edit URL, you need to treat this case as if you're inserting a
new event.  So, calling myService.insert with your entry and the post
URL for the calendar you're using (for example,
http://www.google.com/calendar/feeds/default/private/full).

Cheers,

-Ryan


On Jan 16, 2:54 pm, "Jake" <[EMAIL PROTECTED]> wrote:
Thanks for the reply,

is this near to the mark?

                OriginalEvent originalEvent = new OriginalEvent();
                ArrayList times = (ArrayList) myEntry.getTimes();
                When when = (When) times.get(0);
                originalEvent.setOriginalStartTime(when);
                myEntry.setOriginalEvent(originalEvent);
                myEntry.setStatus(EventEntry.EventStatus.CANCELED);
                URL editUrl = new URL(myEntry.getEditLink().getHref());
                myEntry = myService.update(editUrl, myEntry);

It compiles :p but there is a service exception when it runs so I'm
guessing I've done something wrong

Regards, Jake.


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