Hi Jacky,

Please see Lane's response over here:
http://groups.google.com/group/google-calendar-help-dataapi/browse_thread/thread/7a9f202b087d902b

Basically, the author will always be the user who authenticated when
creating the event.

Cheers,

-Ryan


On Apr 10, 1:35 am, "Jacky.S" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I tried to create an event for another user but failed.
> Here is my code.
>
>         URL postUrl = null;
>         try {
>             postUrl = new URL("http://www.google.com/calendar/feeds/
> [EMAIL PROTECTED]/private/full");
>         } catch (MalformedURLException e1) {
>             e1.printStackTrace();
>         }
>         CalendarEventEntry myEntry = new CalendarEventEntry();
>
>         myEntry.setTitle(new PlainTextConstruct("Tennis with Beth"));
>         myEntry.setContent(new PlainTextConstruct("Meet for a quick
> lesson."));
>
>         Person author = new Person("Jacky.Seraph Mun", null,
> "[EMAIL PROTECTED]");
>         myEntry.getAuthors().add(author);
>
>         DateTime startTime =
> DateTime.parseDateTime("2007-04-12T15:00:00-08:00");
>         DateTime endTime =
> DateTime.parseDateTime("2007-04-12T17:00:00-08:00");
>         When eventTimes = new When();
>         eventTimes.setStartTime(startTime);
>         eventTimes.setEndTime(endTime);
>         myEntry.addTime(eventTimes);
>
>         CalendarEventEntry insertedEntry = null;
>         try {
>             insertedEntry = calendarService.insert(postUrl, myEntry);
>         } catch (IOException e) {
>             e.printStackTrace();
>         } catch (ServiceException e) {
>             e.printStackTrace();
>         }
>
> I have set User Credentials with the user "[EMAIL PROTECTED]". Now
> all I wanted is to create an event under the calendar of this user by
> another author named "Jacky.Seraph Mun". But when the insert service
> having been successful, I found that the author name in the result is
> always "miyazaki" not "Jacky.Seraph Mun". The code what I used above
> to set author for an event seemed not to have any effect.
>
> Could any one help me about this ?
>
> Thank you!
>
> 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