ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions / Google Calendar
  • Special cases
  • Possible error cases:
  • Limit
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>.ListCalendar (Function)
In french: <Variable gglConnexion>.ListeAgenda
Retrieves the list of Google calendars associated with the specified Google account. This function is using the Google Calendar service.
Example
// Connection
Cnt is gglConnection
...
IF Cnt.Connect() =False THEN
Error(ErrorInfo())
RETURN
END
arrCalendars is array of gglCalendar
arrCalendars = Cnt.ListCalendar(gglAll)
// Display the title of each calendar
Calendar is gglCalendar
FOR EACH Calendar OF arrCalendars
Trace(Calendar.Title)
END
Syntax
<Result> = <Google connection>.ListOrganizer([<Filter>])
<Result>: Array of gglCalendar variables
List of Google calendars for the specified account.
<Google connection>: gglConnection variable
Name of the gglConnection variable to be used. This connection was validated by <gglConnection variable>.Connect.
<Filter>: Optional Integer constant
Indicates the type of calendar to list:
gglAll
(Default value)
Lists all the calendars subscribed (shared) and created by the current user.
gglUserLists the calendars created by the current user.
Remarks

Special cases

The returned calendars contain no event. To retrieve the events from the calendars, use <gglConnection variable>.FillCalendar or <gglConnection variable>.FillCalendarByRequest.
To retrieve the calendar with the associated events, use <gglConnection variable>.GetCalendar.

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable.

Limit

Only the first 100 calendars are returned.
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