It s working now with the code :
$id = "Your Calendar ID";
$gcal = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient('[EMAIL PROTECTED]',
'[EMAIL PROTECTED]', $gcal);
$cal = new Zend_Gdata_Calendar($client);
$data = "
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:gAcl='http://
schemas.google.com/acl/2007'>
<category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/acl/2007#accessRule'/>
<gAcl:scope type='default'></gAcl:scope>
<gAcl:role
value='http://schemas.google.com/gCal/2005#read'></
gAcl:role>
</entry>";
$uri = 'http://www.google.com/calendar/feeds/' . $id . '/acl/full';
try {
$result = $cal->post($data, $uri);
}
catch (Zend_Gdata_App_Exception $e) {
echo $e->getMessage();
}
On 11 sep, 11:31, VietRaf <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> Thanks for active people on this group, it was very helpful !
> But now, i'm fighting with a problem, i can create a new calendar,
> but i can't make it public with API.
> Someone here know how i can do it please ?
> Apologize for my bad english.
>
> Have a nice day !
>
> Raphael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---