printUserCalendars(service, allcalendarsFeedUrl);
System.out.println("Calendars in owncalendars feed");
printUserCalendars(service, owncalendarsFeedUrl);
// Create a new secondary calendar, update it, then delete it.
CalendarEntry newCalendar = createCalendar(service);
CalendarEntry updatedCalendar = updateCalendar(newCalendar);
deleteCalendar(newCalendar);
// Subscribe to the Google Doodles calendar, update the personalization
// settings, then delete the subscription.
CalendarEntry newSubscription = createSubscription(service);
CalendarEntry updatedSubscription = updateSubscription(newSubscription);
deleteSubscription(newSubscription);
} catch (IOException e) {
// Communications error
System.err.println("There was a problem communicating with the service.");
e.printStackTrace();