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#ExtendedProps
).

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