ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions / Google Contacts
  • Properties specific to gglContact variables
  • Functions that use the gglContact type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
gglContact (Type of variable)
In french: gglContact
Warning
Since June 15, 2021, the Google Contacts API used by this feature is no longer available (https://developers.google.com/contacts/v3/announcement).
To use Google contacts, refer to the People API published by Google as a replacement: https://developers.google.com/people. RESTSend allows you to easily integrate a REST API in your development projects.
The gglContact type is used to describe and modify a contact used by the Google Contacts service.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Connection to Google
Cnt is gglConnection
Cnt.Email = "email_final_user@gmail.com"
Cnt.ClientID = "387756281032-qffa6dajjd5348iqhi558dkd98xxxxxx.apps.googleusercontent.com"
Cnt.ClientSecret = "S13DCA6KkYh1EgPv9-jLxxxh"
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END
...
// Retrieve the array of contacts
arrContacts is array of gglContact
arrContacts = GglListContact(Cnt)
// Browse the contacts
AContact is gglContact
FOR EACH AContact OF arrContacts
Trace(AContact.Name)
END
// Add a contact into gmail
Cnt is gglConnection
Cnt.Email = "email_final_user@gmail.com"
Cnt.ClientID = "387756281032-qffa6dajjd5348iqhi558dkd98xxxxxx.apps.googleusercontent.com"
Cnt.ClientSecret = "S13DCA6KkYh1EgPv9-jLxxxh"
ctcGoogle is gglContact
 
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
// Add the contact
ctcGoogle.Name = "My new contact"
ctcGoogle.Notes = "Notes of my contact"
IF NOT GglWrite(Cnt, ctcGoogle) THEN
Error(ErrorInfo())
END
END
Remarks

Properties specific to gglContact variables

The following properties can be used to handle gglContact variable:
Name Type usedEffect
CompanyArray of gglOrganizationCompanies/Organizations associated with the contact.
DateModifiedCharacter stringDate the contact was last modified.
This property is read-only.
This constant corresponds to "LastAccessDate" in previous versions.
EmailArray of gglEmailEmail addresses of the contact.
GroupArrayArray of identifiers for the groups of contacts to which the contact belongs.
IdentifierCharacter stringGoogle identifier of the contact.
This property is read-only.
InstantMessagingArray of gglInstantMessagingInstant messaging addresses of the contact.
Name Character stringName of contact.
NotesCharacter stringNotes associated with the contact.
PhoneArray of gglPhoneNumberPhone number of a contact
PostalAddressArray of gglPostalAddressPostal addresses of the contact.

Functions that use the gglContact type

GglDeleteDeletes data from the Google server.
GglListContactRetrieves the list of contacts associated with the specified Google account.
GglListContactByRequestRetrieves a list of contacts from custom parameters.
GglListContactGroupRetrieves the list of groups of contacts associated with the specified Google account.
GglWriteCreates and/or updates data on the Google server (addition or modification of data).
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help