Type Function Return value none Revision Release 2024.3703 Keywords calendar, events, list, get, getEvents See also calendar.*
calendar.getEvents()
lists all available events for specified calendar.
calendar.getEvents( params )
Table. Table containing call parameters - see next section for details.
String. An optional parameter to specify calendar to list events. If omitted, default calendar would be queried.
Number. An optional parameter to filter out event before this Unix time. If omitted, current date would be used.
Number. An optional parameter to filter out event after this Unix time. If omitted "distant future" would be used.
local calendar = require( "plugin.calendar" ) local function listEventsListener( event ) -- Handle resut in event.events here end -- List all available calendars calendar.getEvents( { listener = listEventsListener } )