Ryan or Trevor,
Using: API 1.0.0 RC2, PHP 5
Google calendar not allowing me to add new events to (sub calendars)
it displays the following message:
{ Uncaught exception 'Zend_Gdata_App_Exception' with message 'Post to
Google failed. Reason: Sorry, this calendar does not have public
access enabled. If you are the calendar owner, you can make this
calendar public on the calendar sharing settings page' }
Why I need to make sub calendars public share? I am able to Delete any
sub calendar events, why not Add them too.
Code in question:
//
$gc = new Zend_Gdata_Calendar($client);
$newEvent = $gc->newEventEntry();
$newEvent->title = $gc->newTitle(trim($title));
$newEvent->where = array($gc->newWhere($where));
$newEvent->content = $gc->newContent($desc);
$newEvent->content->type = 'text';
$when = $gc->newWhen();
$when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:00";
$when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00";
$newEvent->when = array($when);
$createdEvent = $gc->insertEvent($newEvent, 'http://www.google.com/
calendar/feeds/h0h18htt...%40group.calendar.google.com/public/basic');
//
Please let me know if this is possible.
Cheers,
BigAL
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---