Hi Mike and Kyle,
The 'alternate' link just points to an HTML representation of the
event, not the user's local copy. The API doesn't currently support
modifying a local version of an event, but this functionality should
be available soon.
I'll keep you posted,
Lane
On Aug 28, 2:45 pm, "Kyle.Kury" <[EMAIL PROTECTED]> wrote:
> Lane,
>
> I was reading another topic here, talking about using POST instead of
> PUT, and someone suggested using:
>
> System.setProperty("com.google.gdata.UseMethodOverride", "false");
>
> I used that, but set the property to true, and it now throws a new
> type of error:
>
> 2007-08-28 14:29:56,000 - Unable to update 'Testing Event 29' because
> this event cannot be editted on Google -
> org.xml.sax.SAXParseException: The element type "meta" must be
> terminated by the matching end-tag "</meta>".
> com.google.gdata.util.ParseException: org.xml.sax.SAXParseException:
> The element type "meta" must be terminated by the matching end-tag "</
> meta>".
>
> I'm assuming there is some other flag that needs to be set so that
> gdata will parse the event into html instead of atom. Is there any
> sort of workaround that will allow us to use the alternate link, or
> are we going to end up chasing our tails looking for an answer?
>
> Thank you for your time,
>
> Kyle
>
> On Aug 28, 12:06 pm, mike <[EMAIL PROTECTED]> wrote:
>
> > Lane,
>
> > We are trying to update an event that we were invited to as an
> > attendee by another user. We are trying to update the alternate event
> > which will only be reflected in our local calendar. The default feed
> > is using atom+xml within the update method, in the Service class. We
> > would like to use text/html, with the alternate link. Is this possible
> > or should we write our own update method to use the alternate event?
>
> > Thanks,
>
> > Mike
>
> > On Aug 28, 11:29 am, "Lane LiaBraaten (Google)"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Mike,
>
> > > Can you give me more information on the use case you're trying to
> > > accomplish? What HTML content do you want to PUT?
>
> > > -Lane
>
> > > On Aug 28, 11:13 am, mike <[EMAIL PROTECTED]> wrote:
>
> > > > Lane,
>
> > > > If I use the CalendarService.update method and pass it the htmlLink
> > > > url along with the CalendarEventEntry we receive the following error.
>
> > > > com.google.gdata.util.ServiceException: HTTP method PUT is not
> > > > supported by this URL
> > > > <HTML>
> > > > <HEAD>
> > > > <TITLE>HTTP method PUT is not supported by this URL</TITLE>
> > > > </HEAD>
> > > > <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> > > > <H1>HTTP method PUT is not supported by this URL</H1>
> > > > <H2>Error 405</H2>
> > > > </BODY>
> > > > </HTML>
>
> > > > Is there a method that will use the html link url to update the event?
> > > > If not where can we change the transmission type of the data from atom
> > > > + xml to text/html.
>
> > > > Thanks in advance,
>
> > > > Mike
>
> > > > On Aug 28, 10:04 am, "Lane LiaBraaten (Google)"
>
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Hi Mike,
>
> > > > > You need to use the edit link. The alternate link points to the HTML
> > > > > version of the event.
>
> > > > > Cheers,
> > > > > Lane
>
> > > > > On Aug 28, 9:05 am, mike <[EMAIL PROTECTED]> wrote:
>
> > > > > > Is it possible using the Google API to update/edit an existing event
> > > > > > using the alternate text/html link? Currently we use the GetEditLink
> > > > > > which returns the self, application/atiom+xml url string.
>
> > > > > > Any advice would be appreciated.
>
> > > > > > Thanks,
>
> > > > > > Mike- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---