ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions / Google Calendar
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<gglConnection variable>.FillCalendarByRequest (Function)
In french: <Variable gglConnexion>.RemplitAgendaParRequête
Fills a calendar that was previously retrieved: the events corresponding to the calendar are retrieved via a custom query. This function must be used after the call to <gglConnection variable>.ListCalendar.
Note: This is an advanced function.. It is recommended to use <gglConnection variable>.FillCalendar.
Example
// Connexion
Cnx is gglConnection
...
IF Cnx.Connect() = False THEN
	Error(ErrorInfo())
	RETURN
END
// Récupération d'un agenda
tabAgendas is array of 0 gglCalendar
tabAgendas = Cnx.ListCalendar()
Agenda = tabAgendas[1]
// Requête : 
// Récupère les événements futurs en les classant par ordre chronologique
Cnx.FillCalendarByRequest(Agenda, "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 the 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.
Attention When switching from Google API v2 to Google API v3, the parameters to be passed to the request were 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: wd300ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help