Google Calendar v3

Read and write Google Calendar v3 from Delphi. Manage events, free/busy ranges, calendars and access-control lists with service-account or OAuth 2.0 user Authentifizierung.

TsgcHTTPGoogleCloud_Calendar_Client

Typed Google-Calendar-v3-Client — events.list / insert / update / delete, calendars CRUD, freebusy.query, plus the standard service-account or OAuth user auth flows.

Komponentenklasse

TsgcHTTPGoogleCloud_Calendar_Client

Plattformen

Windows, macOS, Linux, iOS, Android

Edition

Standard / Professional / Enterprise

Load credentials, list events, insert

Provide a service-account JSON or an OAuth user-token, then call ListEvents, InsertEvent, UpdateEvent and DeleteEvent.

uses
  sgcHTTP;

var
  Calendar: TsgcHTTPGoogleCloud_Calendar_Client;
begin
  Calendar := TsgcHTTPGoogleCloud_Calendar_Client.Create(nil);
  Calendar.GoogleCloudOptions.ServiceAccountJSON.LoadFromFile('service-account.json');

  // list upcoming events
  Memo1.Text := Calendar.ListEvents('primary');

  // insert event
  Calendar.InsertEvent('primary',
    '{"summary":"Quick sync","start":{"dateTime":"2026-05-15T10:00:00Z"},"end":{"dateTime":"2026-05-15T10:30:00Z"}}');
end;
// uses: sgcHTTP
TsgcHTTPGoogleCloud_Calendar_Client *Calendar = new TsgcHTTPGoogleCloud_Calendar_Client(this);
Calendar->GoogleCloudOptions->ServiceAccountJSON->LoadFromFile("service-account.json");

Memo1->Text = Calendar->ListEvents("primary");

Was steckt drin

A typed client für den Calendar v3 REST surface mit dem same auth flow as the other Google Cloud Komponenten.

Event CRUD

ListEvents, GetEvent, InsertEvent, UpdateEvent, PatchEvent, DeleteEvent, QuickAdd map an den events v3 endpoints.

Calendars / ACLs

ListCalendars, GetCalendar, InsertCalendar, DeleteCalendar, ListACL, InsertACL manage the calendar list and access-control rules.

Free/busy

FreeBusy queries the freebusy.query endpoint over a list of calendars and a time range — useful for scheduling assistants.

Service account or OAuth

Domain-wide service-account delegation funktioniert for Workspace tenants. For consumer accounts pair with TsgcHTTP_OAuth2_Client and supply the user's Access Token.

Push notifications

Use WatchEvents to register a Calendar webhook (push channel) — the matching incoming notifications can be handled by TsgcWebSocketHTTPServer.

JSON in, JSON out

Every method returns the raw Calendar v3 JSON response — no shadow type system — so du kannst work directly with Google's schemas.

Spezifikationen und Referenzen

Maßgebliche Quellen für die API, die diese Komponente implementiert.

Dokumentation & Demos

Springe direkt zur Komponentenreferenz, lade das einsatzbereite Demo-Projekt herunter und teste die Testversion.

Online-Hilfe — Google Calendar Client Vollständige Eigenschaften-, Methoden- und Ereignisreferenz für diese Komponente.
Demo Project — Demos\20.HTTP_Protocol\03.Google Einsatzbereites Beispielprojekt. Im sgcWebSockets-Paket enthalten — lade unten die Testversion herunter.
Technisches Dokument (PDF) Funktionen, Schnellstart, Codebeispiele für Delphi & C++ Builder und Primärquellenreferenzen — nur für diese Komponente.
Benutzerhandbuch (PDF) Umfassendes Handbuch zu jeder Komponente der Bibliothek.

Ready to Use Google Calendar from Delphi?

Download the free trial and integrate Google Calendar v3 into your Delphi applications.