Reputation: 11
I am trying to delete an event on my Google Calendar but my method is not working.I am still new to php and Google Calendars and don't understand it. Here is my php function:
private function __calendarEventDelete($params) {
$cal = new _gCal();
$cal->gCal->calendarService->events->delete('primary', $params->data->OrderConfirmationId);
var_dump($cal->gCal->calendarService->events->delete('primary', $events->data->OrderConfirmationId));
}
Upvotes: 1
Views: 400
Reputation: 2361
Google Calendar switched to their v3 API which requires you to authenticate using OAuth 2. Settings this up is far from trivial, but here goes:
There is loads more to figure out, but this should get you started!
Upvotes: 1