3 messages in com.googlegroups.google-calendar-help-dataapiRe: PHP and Access Control Lists (ACLs)
FromSent OnAttachments
Nath22 Nov 2007 00:19 
Austin (Google)22 Nov 2007 12:34 
Nath26 Nov 2007 04:58 
Subject:Re: PHP and Access Control Lists (ACLs)
From:Nath (boj@gmail.com)
Date:11/26/2007 04:58:29 AM
List:com.googlegroups.google-calendar-help-dataapi

Awesome. That helps a lot. Much appreciated.

On Nov 23, 6:35 am, "Austin (Google)" <api.@google.com> wrote:

Hi Nathan,

You can modify the ACL of a calendar using raw XML post to GData server -

1) create a XML file with the following content:

<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='[ACL]'></gAcl:role> </entry>

2) use the following code to set the ACL of a calendar -

$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); $gdataCal = new Zend_Gdata_Calendar($client);

$calId = 'default'; // replace with this your specific calendar ID $aclValue = 'none'; // replace this with your specific ACL
valuehttp://code.google.com/apis/calendar/reference.html#gacl_reference

$uri = 'http://www.google.com/calendar/feeds/'. $calId . '/acl/ full'; $xml = file_get_contents('templates/acl.xml');

$xml = str_replace('[ACL]', $aclValue , $xml);

$gdataCal->post($xml, $uri);

hope it helps, Austin

On Nov 22, 12:19 am, Nath <boj@gmail.com> wrote:

I'm struggling to work out how to retrieve and modify a calendar's Access Control Lists (ACLs) through PHP. Is there an existing way to do this, or does it have to be implemented manually? I've seen there the exact functionality I want has been implemented in the Python Library and Java Libraries, and I've looked at the below reference;

I am non-too familiar with that reference guide though, or how to implement anything with it. Any assistance appreciated.

Nathan- Hide quoted text -