|
|
|
|
|
- Properties specific to gglContact variables
- Functions that use the gglContact type
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. // 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 used | Effect |
---|
Company | Array of gglOrganization | Companies/Organizations associated with the contact. | DateModified | Character string | Date the contact was last modified. This property is read-only. This constant corresponds to "LastAccessDate" in previous versions. | Email | Array of gglEmail | Email addresses of the contact. | Group | Array | Array of identifiers for the groups of contacts to which the contact belongs. | Identifier | Character string | Google identifier of the contact. This property is read-only. | InstantMessaging | Array of gglInstantMessaging | Instant messaging addresses of the contact. | Name | Character string | Name of contact. | Notes | Character string | Notes associated with the contact. | Phone | Array of gglPhoneNumber | Phone number of a contact | PostalAddress | Array of gglPostalAddress | Postal addresses of the contact. |
Functions that use the gglContact type | | GglDelete | Deletes data from the Google server. | GglListContact | Retrieves the list of contacts associated with the specified Google account. | GglListContactByRequest | Retrieves a list of contacts from custom parameters. | GglListContactGroup | Retrieves the list of groups of contacts associated with the specified Google account. | GglWrite | Creates and/or updates data on the Google server (addition or modification of data). |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|