ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Google functions / Google Contacts
  • Properties specific to gglContactGroup variables
  • Functions that use gglContactGroup variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
gglContactGroup (Variable type)
In french: gglGroupeContact
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 gglContactGroup is used to describe and modify a group of contacts used by the Google Contacts service.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Connexion à Google
Cnx is gglConnection
Cnx.Email = "balthazar@gmail.com"
Cnx.Password = "azerty"
Cnx.ApplicationName = "MonAppli-01"
IF GglConnect(Cnx) = False THEN
	Error(ErrorInfo())
END
...

// Récupère les groupes de contacts
tabGroupes is array of gglContactGroup
tabGroupes = GglListContactGroup(Cnx) 

// Parcours des groupes
Grp is gglContactGroup dynamic
FOR EACH Grp OF tabGroupes
	Trace(Grp.Name)
END
// Création d'un groupe de contacts
Cnx is gglConnection
Cnx.Email = "MonAdresse@gmail.com"
Cnx.Password = "MotdePasseAdresseGmail"
Cnx.ApplicationName = ""
grpGoogle is gglContactGroup

IF GglConnect(Cnx) = False THEN
	Error(ErrorInfo())
ELSE
	// Ajout du groupe
	grpGoogle.Name = "Mon Nouveau Groupe"
	IF NOT GglWrite(Cnx, grpGoogle) THEN 
		Error(ErrorInfo())
	END
END
Properties

Properties specific to gglContactGroup variables

The following properties can be used to handle gglContactGroup variables:
Name Type usedEffect
UpdateDateDateTimeDate of the last update. This information is read-only.
Note: The date is UTC (Universal Time Coordinated).
IdentifierCharacter stringGroup identifier. This information is read-only.
Name Character stringName of the group.
Remarks

Functions that use gglContactGroup variables

GglDeleteDeletes data from the Google server.
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: 09/20/2024

Send a report | Local help