Hi Paul,
I don't know if this will help much as it is written in Ruby and uses
some libraries that I have written myself, but you may be able to get
the idea.
1: Get the path from the event feed
comments_path = entry.elements["gd:comments/
gd:feedLink"].attributes["href"]
2. Make a comment entry element with the Atom namespace and a category
element (term='message', scheme='kind')
comments = Kinds.comments
3. Make an Atom Author element
author = Atom.author(:name => name, :email => email)
4. Make an element with the content of the
content = Atom.content(:content => "This is the comment
text.", :type => 'html')
5. Add the author element to the comment entry
comments << author
6. Add the content to the comment entry.
comments << content
7. Post the comment to the feed link
app.create(:path => comments_path,
:data => comments,
:token=>token,
:content_type=>
'application/atom+xml')
Good luck!
Keith
On Apr 2, 5:19 am, "r&d" <[EMAIL PROTECTED]> wrote:
> Hi Keith
>
> I have searched the methods of "adding comments to events through
> Google calendar api" for a long time...but still not workable...
>
> Just get the error messages like below:
> ----------------------------------------------------------------
> The server had a problem handling your request.
> com.google.gdata.util.InvalidEntryException: Bad Request
> No authors for comment
> ----------------------------------------------------------------
>
> Could you help me by showing me some hints or pieces of example code?
>
> Thanks a lot.
>
> Best wishes,
> paul
>
> On 3月18日, 上午10時47分, keith_g <[EMAIL PROTECTED]> wrote:
>
> > I am adding comments to events through the api. I have noticed that
> > response times from the comments feed are extremely poor. It is also
> > noticeable in the Google calendar. Comments load very slowly.
>
> > Will this be fixed or must I change my application design?
>
> > Thanks,
>
> > Keith
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---