Hi all.
I'm using the examples in java api in order to know how to create
calendars using java. My problem is that sometimes the assigned title
is the id instead of the value of title I have writen.
My code is:
....
for(int j=1;j<=5;j++){
String name = "Test Calendar number " + j;
CalendarEntry calendar = new CalendarEntry();
calendar.setTitle(new PlainTextConstruct(name));
calendar.setSummary(new PlainTextConstruct("This calendar has been
added by java code."));
calendar.setTimeZone(new TimeZoneProperty("Europe/Madrid"));
calendar.setHidden(HiddenProperty.FALSE);
calendar.setColor(new ColorProperty("#2952A3"));
calendar.addLocation(new Where("","","Spain"));
URL postUrl = new URL(BasicConnection.ownCalendarURL);
CalendarEntry returnedCalendar = c.service.insert(postUrl,
calendar);
}
And the result of running is:
Own calendars: XT HOTELES,
[email protected], Test Calendar
number 1, Test Calendar number 3, Test Calendar number 4, Test
Calendar number 5
Any idea? Thanks
--
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.