ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions / Google Calendar
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
<gglConnection variable>.FillCalendarByRequest (Function)
In french: <Variable gglConnexion>.RemplitAgendaParRequête
Fills a calendar that was retrieved beforehand: the events corresponding to the calendar are retrieved from a custom request. This function must be used after the call to <gglConnection variable>.ListCalendar.
Remark: This function is an advanced function. It is recommended to use <gglConnection variable>.FillCalendar.
Example
// Connection
Cnt is gglConnection
...
IF Cnt.Connect() =False THEN
Error(ErrorInfo())
RETURN
END
// Retrieve a calendar
arrCalendars is array of 0 gglCalendar
arrCalendars = Cnt.ListCalendar()
Calendar = arrCalendars[1]
// Request:
// Retrieve the future events and organize them in chronological order
Cnt.FillCalendarByRequest(Calendar, "futureevents&orderby=starttime")
Syntax
<Result> = <Google connection>.FillCalendarByRequest(<Calendar> , <Parameters>)
<Result>: Boolean
  • True if the events have been retrieved,
  • False otherwise. 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 <gglConnection variable>.Connect.
<Calendar>: gglCalendar variable
Name of gglCalendar variable to fill.
<Parameters>: Character string
Parameters that must be passed to the HTTP request. The parameters are separated by the & character. For more details, see the documentation about the Google Calendar service.
Caution: When going from Google API version 2 to Google API version 3, the parameters to pass to the request have been modified by Google. For more details, see the documentation about the Google Calendar service (https://developers.google.com/google-apps/calendar/v3/reference/).
Remarks
The dates sent to the Google server must be in UTC format. If necessary, use DateTimeLocalToUTC and DateTimeUTCToLocal to perform the conversions.
Component: wd290ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help