Hi Keith,

Thanks for your quickly and kindly response.

I also found Ryan Boyd (Google) has posted a related topic about this,
and
the entry template he posted is workable!

Thank you again!

Best wishes,
paul

=======================================
"Ryan Boyd (Google)" <[EMAIL PROTECTED]>
Thu, 11 Jan 2007 21:55:46 -0000
http://groups.google.com/group/google-calendar-help-dataapi/browse_thread/thread/3babae794bbc887/6bf3b0b702bec40f?lnk=gst&q=comment#6bf3b0b702bec40f
=======================================

On 4月2日, 上午11時39分, keith_g <[EMAIL PROTECTED]> wrote:
> 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 acommententry 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 thecomment
> text.", :type => 'html')
> 5. Add the author element to thecommententry
>                 comments << author
> 6. Add the content to thecommententry.
>                 comments << content
> 7. Post thecommentto 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 forcomment
> > ----------------------------------------------------------------
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to