|
|
|
|
|
GglRequest (Function) In french: GglRequête 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 occurs (ErrorOccurred variable set to True).
<Google connection>: gglConnection variable Name of the gglConnection variable to be used. This connection was validated by GglConnect. <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: | | gglHTTPDelete | Delete request. | gglHTTPGet | Get request. | gglHTTPPost | Post request. | gglHTTPPut | Put 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|