carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

Trying to change permissions of file with gdata api #710

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>>> scope = gdata.docs.Scope(type='default')
>>> role = gdata.docs.Role(value='writer')
>>> acl_entry = gdata.docs.DocumentListAclEntry(scope=scope, role=role)
>>> created_acl_entry = gd_client.Post(acl_entry, entry.GetAclLink().href, 
converter=gdata.docs.DocumentListAclEntryFromString)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/virtualenv/sled4/lib/python2.7/site-packages/gdata/service.py", line 1236, in Post
    media_source=media_source, converter=converter)
  File "/opt/virtualenv/sled4/lib/python2.7/site-packages/gdata/service.py", line 1358, in PostOrPut
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'This operation is not 
supported in this request version.', 'reason': 'Bad Request'}
>>> 

is this a version issue?

Original issue reported on code.google.com by Eduplane...@gmail.com on 29 Oct 2014 at 2:50

GoogleCodeExporter commented 9 years ago
You should really be using the Drive API. Documents List API is long (2 years) 
deprecated [1]. Sorry this won't be fixed.

[1] 
http://googleappsdeveloper.blogspot.com/2012/09/retiring-google-documents-list-a
pi-v3.html

Original comment by afs...@google.com on 30 Dec 2014 at 8:34