PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of 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
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
// Connexion à Google
Cnx is gglConnection
Cnx.Email = "email_utilisateur_final@gmail.com"
Cnx.ClientID = "387756281032-qffa6dajjd5348iqhi558dkd98xxxxxx.apps.googleusercontent.com"
Cnx.ClientSecret = "S13DCA6KkYh1EgPv9-jLxxxh"
IF GglConnect(Cnx) = False THEN
Error(ErrorInfo())
END
...
// Récupération du tableau des contacts
tabContacts is array of gglContact
tabContacts = GglListContact(Cnx)
// Parcours des contacts
UnContact is gglContact
FOR EACH UnContact OF tabContacts
Trace(UnContact.Name)
END
// Ajout d'un contact dans gmail
Cnx is gglConnection
Cnx.Email = "email_utilisateur_final@gmail.com"
Cnx.ClientID = "387756281032-qffa6dajjd5348iqhi558dkd98xxxxxx.apps.googleusercontent.com"
Cnx.ClientSecret = "S13DCA6KkYh1EgPv9-jLxxxh"
ctcGoogle is gglContact
 
IF GglConnect(Cnx) = False THEN
Error(ErrorInfo())
ELSE
// Ajout du contact
ctcGoogle.Name = "Mon nouveau contact"
ctcGoogle.Notes = "Notes de mon contact"
IF NOT GglWrite(Cnx, ctcGoogle) THEN
Error(ErrorInfo())
END
END
Remarks

Properties specific to the description of gglContact variables

The following properties can be used to handle gglContact variable:
NameType usedEffect
PostalAddressArray of gglPostalAddressPostal addresses of the contact.
Versions 18 and later
ModificationDate
New in version 18
ModificationDate
ModificationDate
Character stringDate of last contact modification.
This property is available in read-only mode.
EmailArray of gglEmailEmail addresses of the contact.
GroupArrayArray of identifiers for the groups of contacts to which the contact belongs.
Versions 18 and later
Identifier
New in version 18
Identifier
Identifier
Character stringGoogle identifier of the contact.
This property is available in read-only mode.
InstantMessagingArray of gglInstantMessagingAddresses of the instant messaging of the contact.
NameCharacter stringName of contact.
NotesCharacter stringNotes associated with the contact.
CompanyArray of gglOrganizationCompanies/Organizations associated with the contact.
PhoneArray of gglPhoneNumberPhone number of a contact

Functions that use the gglContact type

Versions 14 and later
GglDelete
New in version 14
GglDelete
GglDelete
Deletes data from the Google server.
Versions 14 and later
GglListContact
New in version 14
GglListContact
GglListContact
Retrieves the list of contacts associated with the specified Google account.
Versions 14 and later
GglListContactByRequest
New in version 14
GglListContactByRequest
GglListContactByRequest
Retrieves a list of contacts from custom parameters.
Versions 14 and later
GglListContactGroup
New in version 14
GglListContactGroup
GglListContactGroup
Retrieves the list of groups of contacts associated with the specified Google account.
Versions 14 and later
GglWrite
New in version 14
GglWrite
GglWrite
Creates 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