Placing GCalendar code also in API