You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$arrayOfCalendars = $client->findCalendars(); // Returns an array of all accessible calendars on the server.
$client->setCalendar($arrayOfCalendars["myCalendarID"]); // Here: Use the calendar ID of your choice. If you don't know which calendar ID to use, try config/listCalendars.php
/*
* You can create calendar objects (e.g. events, todos,...) on the server with create().
* Just pass a string with the iCalendar-data which should be saved on the server.
* The function returns a CalDAVObject (see CalDAVObject.php) with the stored information about the new object on the server
*/
$firstNewEventOnServer = $client->create($firstNewEvent); // Creates $firstNewEvent on the server and a CalDAVObject representing the event.
$secondNewEventOnServer = $client->create($secondNewEvent); // Creates $firstNewEvent on the server and a CalDAVObject representing the event.