Hi,
I'm creating 2 Google calendars via the Java client API using the following Groovy method:
private CalendarEntry createGoogleCalendar(User user) throws ServiceException {
new CalendarEntry().with {calendar ->
title = new PlainTextConstruct(user.email)
summary = new PlainTextConstruct("Collection calendar for $user.email")
timeZone = new TimeZoneProperty("America/Montreal")
hidden = HiddenProperty.FALSE
def savedCalendar = googleCalendar.insert(CALENDAR_URL, calendar)
log.debug "Created calendar with
title '$savedCalendar.
title.plainText' for '$user.email'"
return savedCalendar
}
}
The logs show:
CalendarService - Created calendar
with
title '
[email protected]' for
'
[email protected]' CalendarService
- Created calendar with
title '
[email protected]' for
'
[email protected]'
so it appears that all is well. However when I look at the 1st calendar on the Google website, the
title is shown as
[email protected], though the summary is correctly shown as Collection calendar for
[email protected].
Strangely, the
title and summary are both shown correctly tor the 2nd calendar. This only started happening today, and I'm pretty sure the relevant code has not changed. I'm totally stumped....