google-code-export / gdata-python-client

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

Get "Missing resource version ID" exception when delete a folder in google doc #390

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I use following code try to delete a folder in google docs,
def main():
    gd_client = gdata.docs.service.DocsService()
    gd_client.ClientLogin("my@gmail.com", "mypassword")
    query = gdata.docs.service.DocumentQuery(categories=['folder'],
                                             params={'showfolders': 'true'})
    feed = gd_client.Query(query.ToUri())

    for entry in feed.entry:
        if entry.title.text.startswith("Backup"):
            uri = "http://docs.google.com/feeds/documents/private/full/" + entry.resourceId.text
            print uri  
            gd_client.Delete(uri)

2.
3.

What is the expected output? What do you see instead?

What version of the product are you using?
I use gdata-python 2.0.10.0

Please provide any additional information below.

Original issue reported on code.google.com by bluewish.ken.lu@gmail.com on 21 Jun 2010 at 3:11

GoogleCodeExporter commented 9 years ago
are you specifying the protocol version number? see 
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#Ve
rsioning

Original comment by masonsi...@gmail.com on 22 Jul 2011 at 4:55

GoogleCodeExporter commented 9 years ago
You should use the newer DocsClient with v3 of the API where this problem does 
not exist.

Original comment by afs...@google.com on 19 Dec 2011 at 12:31