The process to get all calendars of your account is very easy, just follow the next steps:
oGoogleCalendar := TsgcHTTPGoogleCloud_Calendar_Client.Create(nil);
// ... configure OAuth2 options
oGoogleCalendar.GoogleCloudOptions.OAuth2.ClientId := 'google ClientId';
oGoogleCalendar.GoogleCloudOptions.OAuth2.ClientSecret := 'google ClientSecret';
// ... request calendars
if oGoogleCalendar.LoadCalendars then
begin
// ... get calendars data
for i := 0 to oGoogleCalendar.Calendars.Count - 1 do
vCalendarTitle := oGoogleCalendar.Calendars.Calendar[i].Summary;
end
else
raise Exception.Create('Error Calendar Sync');