Finally decyphered the google documentation.  A DocId is a "docId" and
not a filename.
When I first read it, it was a logical assumption that the DocId would
be the name of the file.
It would seem more logical to me that a with a feed, you would specify
what you know, which is the filename, rather than having to do the
extra step of looking-up/converting from a filename to a document id.

Neal

print "-----------------Get Matching Filename/DocId -------------"

q = gdata.docs.service.DocumentQuery()
q['title'] = '3WCTest'
q['title-exact'] = 'true'
feed = client.Query(q.ToUri())
PrintFeed(feed)
docId = feed.entry[0].resourceId.text
domain = "docs.google.com"

print "-----------------Get Doc Contents ---------------"
url = "http://"; + domain + "/feeds/download/documents/Export?docID=" +
docId + "&exportFormat=" + exportFormat
print "url = " + str(url)
result = client.Get(url,converter=str)
print "---- Results: ------- "
print "Google GDocs Response 2: " + result



--~--~---------~--~----~------------~-------~--~----~
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 Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to