Active
Project:
Google Calendar API (GCal)
Version:
6.x-0.1-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2010 at 20:08 UTC
Updated:
24 Nov 2010 at 20:08 UTC
It would be good to return the event ID for saving - this helps with matching updates and deletes with the right event later.
At line 661 replace these two lines:
if ($result['status'] == '201')
return TRUE;
With these:
if ($result['status'] == '201') {
$content=simplexml_load_string(str_replace("\n", '', $result['content']));
$newid=$content->id;
return $newid;
}