ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions
  • Possible error cases:
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
Creates and/or updates data on the Google server (addition or modification of data). The created or updated data is contained in a variable that corresponds to the service used:Remarks:
  • In case of multiple additions, VariableReset is used to reinitialize these variables between the calls to GglWrite.
  • For a modification, the data must be retrieved before it can be modified.
Warning
Since June 15, 2021, the Google Contacts API used by this feature to manage contacts and contact groups 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.
Example
// Connection
Cnt is gglConnection
...
 
// Retrieve the calendar named "Work"
Calendar is gglCalendar = GglGetCalendar(Cnt, "Work")
// Modify the first event of the calendar
Calendar[1].Title = "Apt with boss"
Calendar[1].EndDate = "20081013153"
// Delete the second event from the calendar
Delete(Calendar.Event, 2)
// Actually update the changes on the server
GglWrite(Cnt, Calendar)
Syntax

Creating and/or updating a Google element Hide the details

<Result> = GglWrite(<Google connection> , <Google element>)
<Result>: Boolean
  • True if the update was performed,
  • False if an error occurred. To get more details on the error, use ErrorInfo.
<Google connection>: gglConnection variable
Name of the gglConnection variable to be used. This connection was validated by GglConnect.
<Google element>: Variable corresponding to the type to update
Element to update. This parameter can correspond to:
  • Name of the gglCalendar variable corresponding to the calendar to create/modify.
  • Name of the gglContact variable corresponding to the contact to create/modify.
  • Name of the gglContactGroup variable corresponding to the group of contacts to create/modify.
Remarks

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
Business / UI classification: Business Logic
Component: wd290ggl.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help