On 28 Kwi, 08:29, Racz <rbmboo...@gmail.com> wrote:
> hello there ... i found how get this right
> i did like this:
>
> gdata.alt.appengine.run_on_appengine(self.client._GetDocsClient(),
> store_tokens = True, single_user_mode = True)

Hello,
Does the correct code should look like this:

client = gdata.spreadsheet.text_db.DatabaseClient()

gdata.alt.appengine.run_on_appengine(client._GetDocsClient(),
            store_tokens = True, single_user_mode = True)
gdata.alt.appengine.run_on_appengine(client._GetSpreadsheetsClient())

client.SetCredentials(LOGIN, PASSWORD)
#connect to existing spreadsheet
db = client.GetDatabases(spreadsheet_key=SSHEET_KEY)[0]
table = db.GetTables(name=WSHEET_NAME)[0]
table.AddRecord

With the lines above I get:
RequestError: {'status': 404, 'body': '<HTML>\n<HEAD>\n<TITLE>Not
Found</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
\n<H1>Not Found</H1>\n<H2>Error 404</H2>\n</BODY>\n</HTML>\n',
'reason': ''}

And error seems to occur in line:
db = client.GetDatabases(spreadsheet_key=SSHEET_KEY)[0]

What am I missing?

--~--~---------~--~----~------------~-------~--~----~
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