They are different. 'alternate' did not work for my purposes but 'edit' did.

On Tue, Jul 28, 2009 at 9:57 AM, Adenilson <[email protected]> wrote:

>
> I implemented (http://repo.or.cz/w/libgcal.git) the workaround
> (replacing 'u...@host' by 'default') and it seems to be working fine
> (no regression in my unit tests).
>
> But I assume that the 'alternate' should exist for some reason. Could
> any googler comment about it?
> :-)
>
> And is there any special reason to the URL returned by google server
> being different when I add versus retrieve the event? At least for
> google contacts it is the same... and it used to be same at least with
> gcalendar gdata api < 2.1.
>
>
> Regards
>
>
> Adenilson
>
> On Jul 27, 10:53 am, Adenilson <[email protected]> wrote:
> > Alright, I tried to use the alternate URL to do an edit in a gcalendar
> > event and after doing a PUT, I received a "HTTP/1.0 405 Method not
> > allowed".
> >
> > Anyone could provide some ideas here? The problem is that the edit
> > link that I receive when adding a new event and later when querying by
> > changes is slight different:
> >
> > a) added: <link rel='edit' type='application/atom+xml' href='
> http://www.google.com/calendar/feeds/default/private/full/vipv1uc1dvb87ccbdd..
> .>
> >
> > b) retrieved: <link rel="edit" type="application/atom+xml"
> > href="http://www.google.com/calendar/feeds/useraccount%40gmail.com/
> > private/full/vipv1uc1dvb87ccbdd99q8kkg8"/>
> >
> > And I was using this url as the ID of events stored locally. Only the
> > alternate url is kept the same in both cases (but it seems to not
> > work) and replacing the "useraccount" for "default" by hand is just
> > lame.
> >
> > Regards
> >
> > Adenilson
> >
> > On Jul 27, 7:00 am, Savago <[email protected]> wrote:
> >
> > > Friends
> >
> > > I write to ask you people if is ok to use the "<link
> > > rel='alternate' ...>" instead of the edit one. Are the normal
> > > operations (edit/delete) expected to work using it?
> >
> > > Best regards
> >
> > > Adenilson
> >
>

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