Hi BigAl,

The issue you're having is because of the URL you're posting the event to.
Please use the 'private' visibility, 'full' projection URL for posting new
events.  The 'basic' projection is normally only used for human-readable
access to a calendar feed, and the 'private' visibility URL must be used
anytime updates need to be made to the calendar.  Please see the following
URL for more information about visibility and projection values in the URLs:
http://code.google.com/apis/calendar/reference.html#Feeds

So, in the following line, replace 'public' with 'private' and 'basic' with
'full':
$createdEvent = $gc->insertEvent($newEvent, 'http://www.google.com/
calendar/feeds/h0h18htt...%40group.calendar.google.com/public/basic'<http://www.google.com/calendar/feeds/h0h18htt...%40group.calendar.google.com/public/basic%27>
);

(Note, groups obfuscates the e-mail address in the above code)

Cheers,
-Ryan

On 6/26/07, BigAL <[EMAIL PROTECTED]> wrote:
>
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to