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 Calendar
  • Possible error cases:
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Sends a communication request (HTTP request) to a Google service.
Example
// Connection
Cnt is gglConnection
...
IF Cnt.Connect() = False THEN
	Error(ErrorInfo())
END

// Query without parameter
XMLQry is string = Cnt.Request(gglServiceDocuments, ...
		"http://docs.google.com/feeds/documents/private/full") 
// Query with parameters (search for "Casimir")
XMLQry = Cnt.Request(gglServiceDocuments, ...
		"http://docs.google.com/feeds/documents/private/full?q=Casimir")
Syntax
<Result> = <Google connection>.Request(<Google service> , <HTTP request> [, <Data to send> [, <Query type>]])
<Result>: ANSI character string
  • Server response,
  • Empty string ("") if an error occurs (ErrorOccurred variable set to True).
<Google connection>: gglConnection variable
Name of the gglConnection variable to be used. This connection was validated by <gglConnection variable>.Connect.
<Google service>: Integer constant
Google service on which the request will be performed:
gglServiceCalendarService "Google Calendar Agenda": Google Agenda
gglServiceContactsService "Google Contacts": Google contacts management.
Warning
Since June 15, 2021, the Google Contacts API used by this feature is no longer available (https://developers.google.com/contacts/v3/announcement). For more details, see Management of Google contacts.
gglServiceDocumentsGoogle Docs List service: Document management
gglServicePicasa"Picasa" service
gglServiceStaticMapsGoogle Static Maps service: Maps management
<HTTP request>: Character string
Full URL of the request (including the parameters stored in the URL if necessary). For more details, see the Google documentation corresponding to the service used.
<Data to send>: Optional character string
Data that must be sent onto the server. For more details, see the Google documentation corresponding to the service used.
<Query type>: Optional integer constant
Type of HTTP request to send:
gglHTTPDeleteDelete request.
gglHTTPGetGet request.
gglHTTPPostPost request.
gglHTTPPutPut request.

If <Data to send> is specified, the requests are gglHTTPPost requests by default.
If <Data to send> is not specified, the requests are ggHTTPGet requests by default.
Remarks

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The server returns an error.
To find out whether an error occurred, use the ErrorOccurred variable.
Component: wd300ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help