function listEvents(string $username, string $calendarId): array;
/**
* Get a specific event by ID
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to retrieve
* @return array|null Event data or null if not found
*/
public function getEvent(string $eventUrl): ?array;
/**
* Create a new event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function createEvent(string $username, string $calendarId, array $eventData, string $password): array;
/**
* Update an existing event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to update
* @param array $eventData The updated event data
* @return array Response array with success status, message, and debug info
*/
public function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array;
/**
* Delete an event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to delete
* @return array Response array with success status, message, and debug info
*/
public function deleteEvent(string $username, string $calendarId, string $eventId): array;
/**
* Move an event from one calendar to another
*
* @param string $username The username who owns the calendars
* @param string $sourceCalendarId Source calendar ID
* @param string $targetCalendarId Target calendar ID
* @param string $eventId The event ID to move
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array;
}
âī¸ Parameters
$username(string) The username who owns the calendar
$calendarId(string) The calendar ID
âŠī¸ Returns
(array) Response array with events data and debug info
đ§ getEvent
Get a specific event by ID
function getEvent(string $eventUrl): ?array;
/**
* Create a new event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function createEvent(string $username, string $calendarId, array $eventData, string $password): array;
/**
* Update an existing event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to update
* @param array $eventData The updated event data
* @return array Response array with success status, message, and debug info
*/
public function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array;
/**
* Delete an event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to delete
* @return array Response array with success status, message, and debug info
*/
public function deleteEvent(string $username, string $calendarId, string $eventId): array;
/**
* Move an event from one calendar to another
*
* @param string $username The username who owns the calendars
* @param string $sourceCalendarId Source calendar ID
* @param string $targetCalendarId Target calendar ID
* @param string $eventId The event ID to move
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array;
}
âī¸ Parameters
$username(string) The username who owns the calendar
$calendarId(string) The calendar ID
$eventId(string) The event ID to retrieve
âŠī¸ Returns
(array|null) Event data or null if not found
đ§ createEvent
Create a new event
function createEvent(string $username, string $calendarId, array $eventData, string $password): array;
/**
* Update an existing event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to update
* @param array $eventData The updated event data
* @return array Response array with success status, message, and debug info
*/
public function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array;
/**
* Delete an event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to delete
* @return array Response array with success status, message, and debug info
*/
public function deleteEvent(string $username, string $calendarId, string $eventId): array;
/**
* Move an event from one calendar to another
*
* @param string $username The username who owns the calendars
* @param string $sourceCalendarId Source calendar ID
* @param string $targetCalendarId Target calendar ID
* @param string $eventId The event ID to move
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array;
}
âī¸ Parameters
$username(string) The username who owns the calendar
$calendarId(string) The calendar ID
$eventData(array) The event data
âŠī¸ Returns
(array) Response array with success status, message, and debug info
đ§ updateEvent
Update an existing event
function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array;
/**
* Delete an event
*
* @param string $username The username who owns the calendar
* @param string $calendarId The calendar ID
* @param string $eventId The event ID to delete
* @return array Response array with success status, message, and debug info
*/
public function deleteEvent(string $username, string $calendarId, string $eventId): array;
/**
* Move an event from one calendar to another
*
* @param string $username The username who owns the calendars
* @param string $sourceCalendarId Source calendar ID
* @param string $targetCalendarId Target calendar ID
* @param string $eventId The event ID to move
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array;
}
âī¸ Parameters
$username(string) The username who owns the calendar
$calendarId(string) The calendar ID
$eventId(string) The event ID to update
$eventData(array) The updated event data
âŠī¸ Returns
(array) Response array with success status, message, and debug info
đ§ deleteEvent
Delete an event
function deleteEvent(string $username, string $calendarId, string $eventId): array;
/**
* Move an event from one calendar to another
*
* @param string $username The username who owns the calendars
* @param string $sourceCalendarId Source calendar ID
* @param string $targetCalendarId Target calendar ID
* @param string $eventId The event ID to move
* @param array $eventData The event data
* @return array Response array with success status, message, and debug info
*/
public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array;
}
âī¸ Parameters
$username(string) The username who owns the calendar
$calendarId(string) The calendar ID
$eventId(string) The event ID to delete
âŠī¸ Returns
(array) Response array with success status, message, and debug info