I'm trying to get the revisions of a spreadsheet using the key, but it just returns "Invalid resource id".
from gdata.alt import appengine
from gdata.spreadsheet import service
from gdata.docs.client import DocsClient
self.ss_svc = service.SpreadsheetsService()
# ... login code ...
gd_client = DocsClient(self.ss_svc.GetClientLoginToken())
rev_uri = "https://spreadsheets.google.com/feeds/spreadsheets/private/full/%s/revisions" % spreadsheet_key
# i also tried:
rev_uri = "spreadsheet%" + spreadsheet_key
rev_feed = gd_client.get(rev_uri)
Nothing works. Please help.
This code is a bit confusing because you refer to self
but this doesn't appear to be part of a class definition. Also, you say you "also tried" gd_client.get(rev_uri)
but I don't see what you tried before that -- no other method of gd_client
is called in the above code. And finally, you're using the get
method, which performs a http GET form request, which I don't think is what you want mean to do.
Seems like what you want is get_revisions
. I'm just guessing -- let me know if this is mistaken.