Google Contacts Delphi Component is a non-visual component that allows to work with Google Contacts using Delphi. The component supports Delphi 7 and higher versions and works directly with Google using official API. Official API use guarantees maximum compatibility and fewest possible modifications to future versions.
Connecting to Google Contacts and showing list of Contacts in listbox.
GContacts := TGContacts.Create;
GContacts.Connect('Username', 'Password');
GContacts.LoadContacts;
for I := 0 to GContacts.ContactsCount - 1 do
ListBox1.Items.Add(GContacts.Contacts[I].Title);
GContacts.Free;
Adding a new contact "John" with phone number "+555-55-55" and e-mail address "email@gmail.com".
With GContacts.NewContact do begin FirstName := 'John'; Phone := '+555-55-55'; EMail := 'email@gmail.com'; Store; End;
Deleting contact with index number 5.
GContacts.DeleteContact(5);
Download working example.
Note! The trial version of the component is available upon request.
GCSDC 1.0
Dec. 01, 2011