4d-plugin-ical-v4
iCal API with notification support
See v3 documentation for basic information.
Notification
iCal SET NOTIFICATION METHOD($method)
$method:=iCal Get notification method()
Parameter | Type | Description |
---|---|---|
method | TEXT | callback method name |
The callback method receives no parameters. You can perform a query to get the latest events.
Example:
$options:=New object
$options.startDate:=Add to date(Current date; 0; 0; -1)
$options.endDate:=Add to date(Current date; 0; 0; 1)
/*
optinally pass in $options.calendars
a. collection of calendar names
b. collection of objects where .uid == calendar ID
*/
$status:=iCal QUERY EVENT($options)
If ($status.success)
$uid:=$status.events.extract("uid")
End if
The method is invoked for every EKEventStoreChangedNotification
.
This notification is posted whenever changes are made to the Calendar database, including adding, removing, and changing events or reminders. Individual changes are not described.