PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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
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 the description of gglContact variables

The following properties can be used to handle gglContact variable:
Name Type usedEffect
CompanyArray of gglOrganizationCompanies/Organizations associated with the contact.
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 available in read-only mode.
InstantMessagingArray of gglInstantMessagingAddresses of the instant messaging of the contact.
ModificationDateCharacter stringDate of last contact modification.
This property is available in read-only mode.
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

GglWriteCreates and/or updates data on the Google server (addition or modification of data).
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.
GglDeleteDeletes data from the Google server.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment