On Wed, Apr 02, 2008 at 04:16:07PM -0700, Austin (Google) said:
> 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
I'm slightly confused by this since it's very different from what the
docs say.
Some questions:
1) Why do I have to create a new feed - can I not just retrieve the
autogenerated feed and add a new entry to that and then repost it?
2) Why do I have to add a new <gd:comments> to add into the new comments
feed? That doesn't match what is returned when I manually add comments
in Google Calendar and then retrieve them. What should the new comment
feed look like?
<feed>
<gd:comments>
<entry>Foo</entry>
</gd:comments>
</feed
I've attempted to create an entry, get its comment url, retrieve the
feed from there and add this entry
<entry xmlns="http://purl.org/atom/ns#">
<content mode="xml">
<div xmlns="http://www.w3.org/1999/xhtml">Test comment</div>
</content>
<author>
<name>Simon Wistow</name>
<email>[EMAIL PROTECTED]</email>
</author>
</entry>
However when I do that I get
400 Bad Request - No authors for comment -
http://www.google.com/calendar/feeds/simon.wistow%40gmail.com/private/full/6c2vs1npt8tna10opd9fj7vb9c/comments?gsessionid=HKAzMmOlnSZwM7HYUX2XYw
which is odd because that author element is exactly the same as the
author element created automatically when I post a comment on Google
Calendar.
> 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.
Why not make it so that if you post an event with a
<gd:comments>
<gd:feedLink>
<feed>
....
</feed>
</gd:feedLink>
</gd:comments>
(which, after all, is allowed according to the docs) that the comment
feed that's created has the entries of the specified feed in it?
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
-~----------~----~----~----~------~----~------~--~---