Google Calendar v3

Lis et écris dans Google Calendar v3 depuis Delphi. Gère événements, plages free/busy, calendriers et listes de contrôle d'accès avec authentification service-account ou utilisateur OAuth 2.0.

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.

Classe du composant

TsgcHTTPGoogleCloud_Calendar_Client

Plateformes

Windows, macOS, Linux, iOS, Android

Édition

Standard / Professional / Enterprise

Charge les credentials, liste les événements, insère

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");

Ce qu’il y a à l’intérieur

A typed client for the Calendar v3 REST surface with the same auth flow as the other Google Cloud components.

Event CRUD

ListEvents, GetEvent, InsertEvent, UpdateEvent, PatchEvent, DeleteEvent, QuickAdd map to the 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 works 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 you can work directly with Google's schemas.

Spécifications et références

Sources de référence pour l'API implémentée par ce composant.

Documentation et démos

Lien direct vers la référence du composant, récupère le projet de démo prêt à exécuter et télécharge l’essai.

Aide en ligne — Google Calendar Client Référence complète des propriétés, méthodes et événements de ce composant.
Projet de démo — Demos\20.HTTP_Protocol\03.Google Projet d’exemple prêt à exécuter. Livré dans le paquet sgcWebSockets — télécharge l’essai ci-dessous.
Document technique (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only.
Manuel utilisateur (PDF) Manuel exhaustif couvrant chaque composant de la bibliothèque.

Prêt à utiliser Google Calendar depuis Delphi ?

Télécharge l'essai gratuit et intègre Google Calendar v3 à tes applications Delphi.