PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Possible error cases:
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Sends a communication request (HTTP request) to a Google service.
// Connection
Cnt is gglConnection
...
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END

// Query without parameter
XMLQry is string = GglRequest(Cnt, gglServiceDocuments, ...
"http://docs.google.com/feeds/documents/private/full")
// Query with parameters (search for "Casimir")
XMLQry = GglRequest(Cnt, gglServiceDocuments, ...
"http://docs.google.com/feeds/documents/private/full?q=Casimir")
Syntax
<Result> = GglRequest(<Google Connection> , <Google Service> , <HTTP Request> [, <Data to Send> [, <Type of Request>]])
<Result>: Ansi character string
  • Server response,
  • Empty string ("") if an error occurred (ErrorOccurred variable set to True).
<Google Connection>: gglConnection variable
Name of gglConnection variable to use. This connection was validated by GglConnect.
Versions 20 and later
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
New in version 20
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
<Google Service>: Integer constant
Google service on which the request will be performed:
gglServiceCalendar"Google Calendar" service: Google calendar
gglServiceContacts"Google Contacts" service: Management of Google contacts
gglServiceDocuments"Google Documents List" service: Management of documents
gglServicePicasa"Picasa" service
gglServiceStaticMaps"Google Static Maps" service: Management of maps
<HTTP Request>: Character string
Full URL of request (including the parameters stored in the URL if necessary). See the Google documentation corresponding to the service used for more details.
<Data to Send>: Optional character string
Data that must be sent onto the server. See the Google documentation corresponding to the service used for more details.
<Type of Request>: 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230ggl.dll
Windows Mobile wp230ggl.dll
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment