Hi,

I'm trying to use the java google calendar API, but it semmes that i
have some troubles.

I tried to insert an event in a calendar which is not the deflaut one,
but i car, whatever  i try, everythig  produce en Exception :s

I searched in the doc, but it adds the event only in the main
calendar.

So i want to know how to add an event in an other calendar (i'm still
the owner of this calendar)


the code i tried to edit is this one :

URL postUrl =
  new URL("http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/
full");
CalendarEventEntry myEntry = new CalendarEventEntry();

myEntry.setTitle(new PlainTextConstruct("Tennis with Beth"));
myEntry.setContent(new PlainTextConstruct("Meet for a quick
lesson."));

DateTime startTime = DateTime.parseDateTime
("2006-04-17T15:00:00-08:00");
DateTime endTime = DateTime.parseDateTime
("2006-04-17T17:00:00-08:00");
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
myEntry.addTime(eventTimes);

// Send the request and receive the response:
CalendarEventEntry insertedEntry = myService.insert(postUrl, myEntry);


I'd be pleased if you can edit this code to make it add the event int
the second (or third or other one) calendar

(PS : Excuse my english , i'm french )

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