Hi Folks -

I'm about to work on implementing the new ACL features, but I had a
couple things that I'm not clear on.  Ok, the example in the docs is:


POST /feeds/acl/private/full/document%3A<your document id> HTTP/1.1
Host: docs.google.com
Authorization: <your authorization header here>

<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:role value='writer'/>
  <gAcl:scope type='user' value='[EMAIL PROTECTED]'/>
</entry>


But lets say I have a list of three people that I want to grant access
to, could I do this?

POST /feeds/acl/private/full/document%3A<your document id> HTTP/1.1
Host: docs.google.com
Authorization: <your authorization header here>

<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:role value='writer'/>
  <gAcl:scope type='user' value='[EMAIL PROTECTED]'/>
</entry>
<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:role value='writer'/>
  <gAcl:scope type='user' value='[EMAIL PROTECTED]'/>
</entry>
<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:role value='writer'/>
  <gAcl:scope type='user' value='[EMAIL PROTECTED]'/>
</entry>

Also what happens if my modification conflicts with an existing role?
So let's say in the above that [EMAIL PROTECTED] already is a
collaborator.  Would [EMAIL PROTECTED] and
[EMAIL PROTECTED] still be granted access?  In essence, do I
always have to retrieve the ACL to see what's currently going on, or
if my only interest is that there are particular collaborators (and
don't care if there is more), is actually faster to just post those
permissions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" 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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to