bodyTrackHelper.setDefaultStyle(apiKey.getGuestId(), "google_calendar", "events", channelStyle);
}
private void loadHistory(UpdateInfo updateInfo, boolean incremental) throws Exception {
Calendar calendar = getCalendar(updateInfo.apiKey);
String pageToken = null;
long apiKeyId = updateInfo.apiKey.getId();
settingsService.getConnectorSettings(updateInfo.apiKey.getId());
List<String> existingCalendarIds = getExistingCalendarIds(apiKeyId);
List<CalendarListEntry> remoteCalendars = new ArrayList<CalendarListEntry>();
List<CalendarConfig> configs = new ArrayList<CalendarConfig>();
do {
final long then = System.currentTimeMillis();
final Calendar.CalendarList.List list = calendar.calendarList().list().setPageToken(pageToken);
final String query = list.getUriTemplate();
CalendarList calendarList = null;
try {
calendarList = list.execute();
countSuccessfulApiCall(updateInfo.apiKey, updateInfo.objectTypes, then, query);