Hi,
I would recommend doing it in this sequence
1) Create a new <feed>
2) Add an entry to it
3) Post this entry
4) Query for the added entry in step #2
5) Find its comment URL
- looks like this
http://www.google.com/calendar/feeds/default/private/full/[EVENT_ID]/comments
6) Create a new <feed>
7) Add a <gd:comments> entry to the feed
8) POST this feed to the comment URL from step #5
The reason I think separating out the creation of the event and the
comment is a good idea because the comment feed wouldn't not exist
until the event is actually created. And the event feed and comment
feed actually are considered separate resources with different feed
URL.
Hope that helps,
Austin
On Wed, Apr 2, 2008 at 3:40 PM, Simon Wistow <[EMAIL PROTECTED]> wrote:
>
> On Wed, Apr 02, 2008 at 02:46:35PM -0700, Austin (Google) said:
> > Can you list out the steps you take to get that?
> >
> > I would take a guess in what you are doing:
> > 1) using the API to create an event
> > 2) use the API to append a comment to the created event
> > 3) retrieve that event and you get this piece of XML?
>
>
> Well the whole test script is here
>
> https://svn.unixbeard.net/simon/Net-Google-Calendar/t/05comments.t
>
> but the problem could be replicated by POSTing that XML with curl and
> the appropriate Auth params.
>
> Translating from Perl the steps are
>
> 1) Create a new <feed>
> 2) Add an entry to it
> 3) Create a new <gd:feedLink> and add the <feed> to that
> 4) Create a new <gd:comments> and add the <gd:feedLink>
> 5) Create a new <entry> and add the <gd:comments>
> 6) POST the <entry>
>
> Now the entry gets created fine within my calendar and GData recognises
> that I've tried to add a comments but it seems to ignore anything other
> than that and I'm not sure why.
>
>
>
> Simon
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---