Jacky's original question was:
> The code below seems not to have any effect. When I tried to add an
> event in a user's calendar, I can not specify the event author by this
> code. After adding successfully, the author in the result entry is
> always the calendar's creator but not Jacky.Seraph Mun.
>         Person author = new Person("Jacky.Seraph Mun", null,
>                                    "[EMAIL PROTECTED]");
>         myEntry.getAuthors().add(author);
> What can I do for that?

I searched Google and got to this forum because I was using the same
code to add an author. I was using this code because this is the code
that is in the createEvent method that is in the file .../gdata/java/
sample/calendar/CalendarClient.java that you can obtain from
http://code.google.com/apis/gdata/download/gdata.java.zip

So when someone in Google has time they might like to remove this line
because it doesn't do anything useful.

On Apr 10, 8:08 pm, "Lane LiaBraaten" <[EMAIL PROTECTED]> wrote:
> Hi Jacky,
>
> When creating events, the Calendar API will automatically set the author to
> be the user that is currently authenticated.  While the code you wrote is
> syntactically correct, setting the author in the entry before inserting it
> won't have any effect.
>
> If you want to store some extra information, you could store it as an
> extended property of the event.  See the developer's guide for more
> information on this 
> (http://code.google.com/apis/calendar/developers_guide_java.html#Exten...
> ).
>
> Cheers,
> Lane
>
> On 4/10/07, Jacky.Seraph Mun <[EMAIL PROTECTED]> wrote:
>
>
>
> > Dear sir,
>
> > May I have a question for you? I got a problem below when I tried to
> > develop programs via google calendar API. Having browsed the forum of Google
> > Data API, I didn't find the exactly answer. So I tried to post a thread on
> > that forum. But my thread always disappeared the moment I sent it. So I
> > can't leave my question there.
>
> > Could you help me about this or tell me the reason and what to do for that
> > ?
>
> > Thanks,
>
> > Jacky
>
> > ---------- Forwarded message ----------
> > From: Jacky.S <[EMAIL PROTECTED]>
> > Date: 2007/4/10 下午 5:29
> > Subject: Setting author has no effect?
> > To: Google Calendar Data API <
> > [email protected]>
>
> > Hello,
>
> > The code below seems not to have any effect. When I tried to add an
> > event in a user's calendar, I can not specify the event author by this
> > code. After adding successfully, the author in the result entry is
> > always the calendar's creator but not Jacky.Seraph Mun.
>
> >        Person author = new Person("Jacky.Seraph Mun", null,
> > "[EMAIL PROTECTED]");
> >        myEntry.getAuthors().add(author);
>
> > What can I do for that?
>
> > Thanks.
>
> > Jacky


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